Civilized code doesn't use global variables accessed via extern

This commit is contained in:
xenakios 2018-06-27 13:44:36 +03:00
parent f71f437d3e
commit 4f203de39a
3 changed files with 2 additions and 4 deletions

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>;

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),

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) {