Browse Source

Civilized code doesn't use global variables accessed via extern

tags/1.2.2
xenakios 7 years ago
parent
commit
4f203de39a
3 changed files with 2 additions and 4 deletions
  1. +2
    -0
      Source/PS_Source/globals.h
  2. +0
    -2
      Source/PluginEditor.cpp
  3. +0
    -2
      Source/PluginProcessor.cpp

+ 2
- 0
Source/PS_Source/globals.h View File

@@ -21,6 +21,8 @@
#include <memory>
#include "../JuceLibraryCode/JuceHeader.h"

const String g_plugintitle{ "PaulXStretch 1.2.2" };

using REALTYPE = float;

using floatvector = std::vector<REALTYPE>;


+ 0
- 2
Source/PluginEditor.cpp View File

@@ -21,8 +21,6 @@ www.gnu.org/licenses
#include <array>
#include "RenderSettingsComponent.h"

extern String g_plugintitle;

//==============================================================================
PaulstretchpluginAudioProcessorEditor::PaulstretchpluginAudioProcessorEditor(PaulstretchpluginAudioProcessor& p)
: AudioProcessorEditor(&p),


+ 0
- 2
Source/PluginProcessor.cpp View File

@@ -25,8 +25,6 @@ www.gnu.org/licenses
#undef max
#endif

String g_plugintitle{ "PaulXStretch 1.2.2" };

int get_optimized_updown(int n, bool up) {
int orig_n = n;
while (true) {


Loading…
Cancel
Save