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:
parent
27aca8101f
commit
8bf46d7a21
@ -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())
|
||||||
|
@ -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())
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
@ -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())
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user