Skip to content

Commit

Permalink
More compile-time strings
Browse files Browse the repository at this point in the history
  • Loading branch information
oblivioncth committed Jul 23, 2023
1 parent abd460d commit 69596c5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ endif()

include(OB/FetchQx)
ob_fetch_qx(
REF "6812df5c1fe1c584a9dfa0ded76db8727ca059b5"
REF "5c4b3a0f84f6d4e42da9a431f887aafdfb9aae32"
COMPONENTS
${CLIFP_QX_COMPONENTS}
)
Expand Down Expand Up @@ -118,4 +118,3 @@ ob_standard_project_misc_install()

include(OB/Packaging)
ob_standard_project_package(VENDOR "oblivioncth")

2 changes: 1 addition & 1 deletion app/src/command/c-run.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Qx::Error CRun::perform()
if(Qx::Error ee = mCore.enqueueStartupTasks(); ee.isValid())
return ee;

QString inputPath = mCore.resolveTrueAppPath(mParser.value(CL_OPTION_APP), ""); // No way of knowing platform
QString inputPath = mCore.resolveTrueAppPath(mParser.value(CL_OPTION_APP), u""_s); // No way of knowing platform
QFileInfo inputInfo = QFileInfo(mCore.fpInstall().fullPath() + '/' + inputPath);

TExec* runTask = new TExec(&mCore);
Expand Down
2 changes: 1 addition & 1 deletion app/src/kernel/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ CoreError Core::enqueueStartupTasks()
xhostSet->setStage(Task::Stage::Startup);
xhostSet->setExecutable(u"xhost"_s);
xhostSet->setDirectory(mFlashpointInstall->fullPath());
xhostSet->setParameters({"+SI:localuser:root"});
xhostSet->setParameters({u"+SI:localuser:root"_s});
xhostSet->setProcessType(TExec::ProcessType::Blocking);

mTaskQueue.push(xhostSet);
Expand Down
2 changes: 1 addition & 1 deletion app/src/task/task.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Task::Task(QObject* parent) :

//-Instance Functions-------------------------------------------------------------
//Public:
QStringList Task::members() const { return {".stage() = " + ENUM_NAME(mStage)}; }
QStringList Task::members() const { return {u".stage() = "_s + ENUM_NAME(mStage)}; }

Task::Stage Task::stage() const { return mStage; }
void Task::setStage(Stage stage) { mStage = stage; }
Expand Down

0 comments on commit 69596c5

Please sign in to comment.