Commit cdc93193 authored by Yuri Chornoivan's avatar Yuri Chornoivan
Browse files

Fix minor EBN issues

parent f40aa156
......@@ -45,7 +45,7 @@ public:
void setSoundController(ISoundController *soundController);
private:
Core(QObject *parent = 0);
explicit Core(QObject *parent = 0);
IPluginController *m_pluginController;
ISoundController *m_soundController;
......
......@@ -128,7 +128,7 @@ bool ExerciseController::mergeJsonFiles(const QString directoryName, QJsonObject
foreach (const QString &jsonDirString, jsonDirs) {
QDir jsonDir(jsonDirString);
foreach (const QString &json, jsonDir.entryList(QDir::Files)) {
if (!json.endsWith(".json")) break;
if (!json.endsWith(QLatin1String(".json"))) break;
QFile jsonFile(jsonDir.absoluteFilePath(json));
if (!jsonFile.open(QIODevice::ReadOnly)) {
#if !defined(Q_OS_ANDROID)
......
......@@ -41,7 +41,7 @@ class PluginController : public IPluginController
Q_OBJECT
public:
PluginController(QObject *parent = 0);
explicit PluginController(QObject *parent = 0);
~PluginController() override;
bool initialize(Core *core);
......
......@@ -57,7 +57,7 @@ class UiController : public IUiController
Q_OBJECT
public:
UiController(QObject *parent = 0);
explicit UiController(QObject *parent = 0);
~UiController() override;
bool initialize(Core *core);
......
......@@ -77,7 +77,7 @@ void CsoundSoundController::openExerciseFile()
while (!in.atEnd()) {
lineData = in.readLine();
lineData.replace("APPDIRPATH", QCoreApplication::applicationDirPath());
tempBeginLine = tempBeginLine + lineData + "\n";
tempBeginLine = tempBeginLine + lineData + '\n';
if (lineData.contains("<CsScore>")) {
m_begLine.append(tempBeginLine);
break;
......@@ -86,7 +86,7 @@ void CsoundSoundController::openExerciseFile()
while (!in.atEnd()) {
lineData = in.readLine();
tempEndLine += lineData + "\n";
tempEndLine += lineData + '\n';
}
m_endLine.append(tempEndLine);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment