Run clangformat everywhere

This commit is contained in:
SimoneN64
2024-08-27 21:35:07 +02:00
parent b3a4a302cb
commit e253627890
74 changed files with 5536 additions and 4358 deletions

View File

@@ -1,11 +1,11 @@
#include <CPUSettings.hpp>
#include <QVBoxLayout>
#include <QLabel>
#include <JSONUtils.hpp>
#include <QLabel>
#include <QVBoxLayout>
#include <log.hpp>
CPUSettings::CPUSettings(nlohmann::json& settings) : settings(settings), QWidget(nullptr) {
cpuTypes->addItems({ "Interpreter", "Dynamic Recompiler" });
CPUSettings::CPUSettings(nlohmann::json &settings) : settings(settings), QWidget(nullptr) {
cpuTypes->addItems({"Interpreter", "Dynamic Recompiler"});
if (JSONGetField<std::string>(settings, "cpu", "type") == "jit") {
cpuTypes->setCurrentIndex(1);
@@ -25,11 +25,11 @@ CPUSettings::CPUSettings(nlohmann::json& settings) : settings(settings), QWidget
emit modified();
});
QLabel* label = new QLabel("CPU type:");
auto label = new QLabel("CPU type:");
QVBoxLayout* mainLayout = new QVBoxLayout;
auto mainLayout = new QVBoxLayout;
mainLayout->addWidget(label);
mainLayout->addWidget(cpuTypes);
mainLayout->addStretch();
setLayout(mainLayout);
}
}