Use a static cast in the main function.
This commit is contained in:
parent
85c155fc3b
commit
e356ceab0c
|
@ -13,7 +13,7 @@ int main(int argc, char* argv[]) {
|
||||||
string currentArg;
|
string currentArg;
|
||||||
for (signed int i = 0; i < argc; ++i)
|
for (signed int i = 0; i < argc; ++i)
|
||||||
{
|
{
|
||||||
currentArg = ((string) argv[i]);
|
currentArg = static_cast<string>(argv[i]);
|
||||||
if ((currentArg == "--printresult") || (currentArg == "-p")) printResult = true;
|
if ((currentArg == "--printresult") || (currentArg == "-p")) printResult = true;
|
||||||
else if (currentArg.starts_with("--target=")) target = '.' + currentArg.erase(0, 9);
|
else if (currentArg.starts_with("--target=")) target = '.' + currentArg.erase(0, 9);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue