[nostalgia] Update nested namespaces for C++17
This commit is contained in:
@@ -8,8 +8,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace nostalgia {
|
||||
namespace studio {
|
||||
namespace nostalgia::studio {
|
||||
|
||||
enum {
|
||||
JSON_ERR_FIELD_MISSING = 1,
|
||||
@@ -17,4 +16,3 @@ enum {
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
@@ -8,8 +8,7 @@
|
||||
|
||||
#include "json_read.hpp"
|
||||
|
||||
namespace nostalgia {
|
||||
namespace studio {
|
||||
namespace nostalgia::studio {
|
||||
|
||||
JsonReader::JsonReader(QJsonObject &obj): m_src(obj) {
|
||||
}
|
||||
@@ -86,4 +85,3 @@ ox::Error JsonReader::field(QJsonValueRef src, QString *dest) {
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
@@ -14,8 +14,7 @@
|
||||
|
||||
#include <ox/fs/fs.hpp>
|
||||
|
||||
namespace nostalgia {
|
||||
namespace studio {
|
||||
namespace nostalgia::studio {
|
||||
|
||||
class OxFSFile {
|
||||
private:
|
||||
@@ -82,4 +81,3 @@ class OxFSModel: public QAbstractItemModel {
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
@@ -8,8 +8,7 @@
|
||||
|
||||
#include "plugin.hpp"
|
||||
|
||||
namespace nostalgia {
|
||||
namespace studio {
|
||||
namespace nostalgia::studio {
|
||||
|
||||
QVector<WizardMaker> Plugin::newWizards(const Context*) {
|
||||
return {};
|
||||
@@ -24,4 +23,3 @@ QWidget *Plugin::makeEditor(QString, const Context*) {
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@@ -19,8 +19,7 @@
|
||||
#include "project.hpp"
|
||||
#include "wizard.hpp"
|
||||
|
||||
namespace nostalgia {
|
||||
namespace studio {
|
||||
namespace nostalgia::studio {
|
||||
|
||||
struct Context {
|
||||
QWidget *tabParent = nullptr;
|
||||
@@ -46,7 +45,6 @@ class Plugin {
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#define PluginInterface_iid "net.drinkingtea.nostalgia.studio.Plugin"
|
||||
|
@@ -15,8 +15,7 @@
|
||||
#include <ox/fs/fs.hpp>
|
||||
#include <ox/mc/mc.hpp>
|
||||
|
||||
namespace nostalgia {
|
||||
namespace studio {
|
||||
namespace nostalgia::studio {
|
||||
|
||||
class Project: public QObject {
|
||||
Q_OBJECT
|
||||
@@ -75,4 +74,3 @@ ox::Error Project::writeObj(QString path, T *obj) const {
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@@ -18,8 +18,7 @@
|
||||
#include "plugin.hpp"
|
||||
#include "wizard.hpp"
|
||||
|
||||
namespace nostalgia {
|
||||
namespace studio {
|
||||
namespace nostalgia::studio {
|
||||
|
||||
using std::function;
|
||||
|
||||
@@ -343,4 +342,3 @@ void Wizard::accept() {
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@@ -19,8 +19,7 @@
|
||||
#include <QVector>
|
||||
#include <QWizard>
|
||||
|
||||
namespace nostalgia {
|
||||
namespace studio {
|
||||
namespace nostalgia::studio {
|
||||
|
||||
struct WizardMaker {
|
||||
QString name;
|
||||
@@ -132,4 +131,3 @@ class Wizard: public QWizard {
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
@@ -29,8 +29,7 @@
|
||||
|
||||
#include "mainwindow.hpp"
|
||||
|
||||
namespace nostalgia {
|
||||
namespace studio {
|
||||
namespace nostalgia::studio {
|
||||
|
||||
const QString MainWindow::StateFilePath = "studio_state.json";
|
||||
|
||||
@@ -375,4 +374,3 @@ void MainWindow::refreshProjectExplorer(QString path) {
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@@ -27,8 +27,7 @@
|
||||
#include "lib/plugin.hpp"
|
||||
#include "lib/project.hpp"
|
||||
|
||||
namespace nostalgia {
|
||||
namespace studio {
|
||||
namespace nostalgia::studio {
|
||||
|
||||
struct NostalgiaStudioState {
|
||||
QString projectPath;
|
||||
@@ -145,4 +144,3 @@ class MainWindow: public QMainWindow {
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user