fix a test that was suppressed because #9002

This commit is contained in:
Jens Yllman 2020-06-19 23:04:15 +02:00
parent 08b0fa21a7
commit aa380e0de1
1 changed files with 0 additions and 4 deletions

View File

@ -364,15 +364,11 @@ public:
void MacroTest2_test()
{
// TODO: remove suppression when #9002 is fixed
// cppcheck-suppress checkLibraryFunction
QString str = MacroTest2::tr("hello");
QByteArray ba = str.toLatin1();
printf(ba.data());
#ifndef QT_NO_DEPRECATED
// TODO: remove suppression when #9002 is fixed
// cppcheck-suppress checkLibraryFunction
str = MacroTest2::trUtf8("test2");
ba = str.toLatin1();
printf(ba.data());