Skip to content

Commit

Permalink
DO NOT MERGE! Deliberately fail codestyle test
Browse files Browse the repository at this point in the history
  • Loading branch information
shoogle committed Jul 22, 2020
1 parent bf478a4 commit 25a9fbc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ int main(int argc, char** argv)
// would otherwise default to the local ANSI code page and cause corruption of any non-ANSI Unicode characters in command-line arguments.
QTextCodec::setCodecForLocale(QTextCodec::codecForName("UTF-8"));

initResources();
initResources();

#ifndef BUILD_UI_MU4
ModulesSetup::instance()->setup();
Expand Down Expand Up @@ -87,9 +87,8 @@ int main(int argc, char** argv)
// Ms::runApplication() wants an argv-style array of raw pointers to the arguments, so let's create a vector of them.
std::vector<char*> argvUTF8;

for (auto& arg : argvUTF8Q) {
for (auto& arg : argvUTF8Q)
argvUTF8.push_back(arg.data());
}

// Don't use the arguments passed to main(), because they're in the local ANSI code page.
Q_UNUSED(argc);
Expand Down

0 comments on commit 25a9fbc

Please sign in to comment.