Silence some conversion warnings

Change-Id: I3087bff60e77c0eaa5818a5405c97628ce7f6b79
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
This commit is contained in:
Amir Masoud Abdol 2023-03-03 14:48:18 +01:00
parent 27aca8101f
commit 8bf46d7a21
4 changed files with 4 additions and 4 deletions

View File

@ -63,7 +63,7 @@ QTEST_MAIN_WRAPPER(tst_BenchlibCallgrind,
|| qstrcmp(arg, "-callgrind") == 0; || qstrcmp(arg, "-callgrind") == 0;
}) == args.end()) { }) == args.end()) {
args.push_back("-callgrind"); args.push_back("-callgrind");
argc = args.size(); argc = int(args.size());
argv = const_cast<char**>(&args[0]); argv = const_cast<char**>(&args[0]);
} }
QTEST_MAIN_SETUP()) QTEST_MAIN_SETUP())

View File

@ -37,7 +37,7 @@ void tst_BenchlibCounting::failingBenchmark()
QTEST_MAIN_WRAPPER(tst_BenchlibCounting, QTEST_MAIN_WRAPPER(tst_BenchlibCounting,
std::vector<const char*> args(argv, argv + argc); std::vector<const char*> args(argv, argv + argc);
args.push_back("-eventcounter"); args.push_back("-eventcounter");
argc = args.size(); argc = int(args.size());
argv = const_cast<char**>(&args[0]); argv = const_cast<char**>(&args[0]);
QTEST_MAIN_SETUP()) QTEST_MAIN_SETUP())

View File

@ -73,7 +73,7 @@ int main(int argc, char** argv)
{ {
std::vector<const char*> args(argv, argv + argc); std::vector<const char*> args(argv, argv + argc);
args.push_back("-eventcounter"); args.push_back("-eventcounter");
argc = args.size(); argc = int(args.size());
argv = const_cast<char**>(&args[0]); argv = const_cast<char**>(&args[0]);
TestEventDispatcher dispatcher; TestEventDispatcher dispatcher;

View File

@ -40,7 +40,7 @@ void tst_BenchlibTickCounter::threeBillionTicks()
QTEST_MAIN_WRAPPER(tst_BenchlibTickCounter, QTEST_MAIN_WRAPPER(tst_BenchlibTickCounter,
std::vector<const char*> args(argv, argv + argc); std::vector<const char*> args(argv, argv + argc);
args.push_back("-tickcounter"); args.push_back("-tickcounter");
argc = args.size(); argc = int(args.size());
argv = const_cast<char**>(&args[0]); argv = const_cast<char**>(&args[0]);
QTEST_MAIN_SETUP()) QTEST_MAIN_SETUP())