forked from qt-creator/qt-creator
Autotest: move global static into function
Change-Id: I31dcbbba430ce7856e3dd8d7b907d01cd09112e8 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -35,11 +35,10 @@ namespace Autotest {
|
|||||||
namespace Internal {
|
namespace Internal {
|
||||||
namespace QuickTestUtils {
|
namespace QuickTestUtils {
|
||||||
|
|
||||||
static const QByteArrayList valid = {"QUICK_TEST_MAIN", "QUICK_TEST_OPENGL_MAIN",
|
|
||||||
"QUICK_TEST_MAIN_WITH_SETUP"};
|
|
||||||
|
|
||||||
bool isQuickTestMacro(const QByteArray ¯o)
|
bool isQuickTestMacro(const QByteArray ¯o)
|
||||||
{
|
{
|
||||||
|
static const QByteArrayList valid = {"QUICK_TEST_MAIN", "QUICK_TEST_OPENGL_MAIN",
|
||||||
|
"QUICK_TEST_MAIN_WITH_SETUP"};
|
||||||
return valid.contains(macro);
|
return valid.contains(macro);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user