Skip to content

Commit f8aef74

Browse files
committed
Cleanup.
1 parent 8179430 commit f8aef74

File tree

5 files changed

+22
-18
lines changed

5 files changed

+22
-18
lines changed

src/MainStructure/FLSessionManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ const char** FLSessionManager::getFactoryArgv(const QString& sourcePath, const Q
618618
FLSettings::_Instance()->value("General/Control/PolyphonyGroupDefaultChecked", false)).toBool()) ? "1": "0";
619619
}
620620

621-
argv[argc] = 0; // NULL terminated argv
621+
argv[argc] = NULL; // NULL terminated argv
622622
return argv;
623623
}
624624

src/MainStructure/FLWindow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,7 @@ void FLWindow::allocateOscInterface()
910910
string errport = fSettings->value("Osc/ErrPort", "5512").toString().toStdString();
911911
argv[10] = (char*) (errport.c_str());
912912

913-
argv[argc] = 0; // NULL terminated argv
913+
argv[argc] = NULL; // NULL terminated argv
914914

915915
fOscInterface = new OSCUI(argv[0], argc, argv, NULL, &catch_OSCError, this, false);
916916
delete [] argv;

src/MenusAndDialogs/FLHelpWindow.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
#include "utilities.h"
1111
#include "FLErrorWindow.h"
1212

13+
#include <iostream>
14+
1315
#define LLVM_DSP_FACTORY
1416
#ifdef LLVM_DSP_FACTORY
1517
#include "faust/dsp/llvm-dsp.h"
@@ -165,7 +167,7 @@ void FLHelpWindow::parseLibs(map<string, vector<pair<string, string> > >& infoLi
165167
//The library path is where libraries like the scheduler architecture file are = currentSession
166168
string libPath = fLibsFolder.toStdString();
167169
argv[argc++] = libPath.c_str();
168-
argv[argc] = 0; // NULL terminated argv
170+
argv[argc] = NULL; // NULL terminated argv
169171
string error;
170172
string file = fTestDSPPath.toStdString();
171173

@@ -174,6 +176,7 @@ void FLHelpWindow::parseLibs(map<string, vector<pair<string, string> > >& infoLi
174176
#else
175177
dsp_factory* temp_factory = createInterpreterDSPFactoryFromFile(file, argc, argv, error);
176178
#endif
179+
177180
if (!temp_factory) {
178181
FLErrorWindow::_Instance()->print_Error(error.c_str());
179182
return;
@@ -184,7 +187,7 @@ void FLHelpWindow::parseLibs(map<string, vector<pair<string, string> > >& infoLi
184187

185188
MyMeta* meta = new MyMeta;
186189
temp_dsp->metadata(meta);
187-
190+
188191
for (size_t i = 0; i < meta->datas.size(); i++) {
189192

190193
string libName, key, value;
@@ -196,7 +199,7 @@ void FLHelpWindow::parseLibs(map<string, vector<pair<string, string> > >& infoLi
196199
} else {
197200
key = meta->datas[i].first;
198201
}
199-
202+
200203
value = meta->datas[i].second;
201204
infoLibs[libName].push_back(make_pair(key, value));
202205
}

src/MenusAndDialogs/FLHelpWindow.h

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,18 @@
3333

3434
using namespace std;
3535

36-
struct MyMeta: public Meta{
36+
struct MyMeta: public Meta {
3737

3838
public:
3939
vector<pair<string, string> > datas;
4040

41-
virtual void declare(const char* key, const char* value){
41+
virtual void declare(const char* key, const char* value)
42+
{
4243
datas.push_back(make_pair(key, value));
4344
}
4445
};
4546

46-
class FLHelpWindow : public QMainWindow{
47+
class FLHelpWindow : public QMainWindow {
4748

4849
private:
4950

@@ -66,23 +67,23 @@ class FLHelpWindow : public QMainWindow{
6667
FLHelpWindow(const QString& libsFodler, const QString& testDSPPath);
6768
virtual ~FLHelpWindow();
6869

69-
static FLHelpWindow* _helpWindow;
70-
static FLHelpWindow* _Instance();
71-
static void createInstance(const QString home, const QString& testDSPPath);
72-
static void deleteInstance();
70+
static FLHelpWindow* _helpWindow;
71+
static FLHelpWindow* _Instance();
72+
static void createInstance(const QString home, const QString& testDSPPath);
73+
static void deleteInstance();
7374

7475
void init();
7576

7677
virtual void closeEvent(QCloseEvent* event);
7778

7879
public slots:
7980

80-
void setToolText(const QString & currentText);
81-
void setAppPropertiesText(const QString& currentText);
82-
void setWinPropertiesText(const QString& currentText);
83-
void setLibText();
81+
void setToolText(const QString & currentText);
82+
void setAppPropertiesText(const QString& currentText);
83+
void setWinPropertiesText(const QString& currentText);
84+
void setLibText();
8485

85-
void hideWindow();
86+
void hideWindow();
8687

8788
};
8889

src/Network/unused/FLRemoteServer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ bool Server::compile_Data(connection_info_struct* con_info){
501501
for(int i = 0; i < argc; i++){
502502
argv[i] = (con_info->fCompilationOptions[i]).c_str();
503503
}
504-
argv[argc] = 0; // NULL terminated argv
504+
argv[argc] = NULL; // NULL terminated argv
505505

506506
string error;
507507
con_info->fLLVMFactory = createDSPFactoryFromString(con_info->fNameApp, con_info->fFaustCode, argc, argv, "", error, atoi(con_info->fOptLevel.c_str()));

0 commit comments

Comments
 (0)