Remove duplicate symbol name: QTest::currentAppName
It's declared in qtestcase.h as a function, so let's not declare the one in qtestresult.cpp as a static variable. None of the variables in qtestresult.cpp need to be in the QTest namespace, but we don't need to change them now. Change-Id: If6cc34642fdfe3ccda3b8cea7d053ead0db9ccbd Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
This commit is contained in:
parent
03fc60debf
commit
090124eab6
@ -51,6 +51,8 @@
|
||||
#include <string.h>
|
||||
#include <wchar.h>
|
||||
|
||||
static const char *currentAppName = 0;
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
namespace QTest
|
||||
@ -64,8 +66,6 @@ namespace QTest
|
||||
|
||||
static const char *expectFailComment = 0;
|
||||
static int expectFailMode = 0;
|
||||
|
||||
static const char *currentAppName = 0;
|
||||
}
|
||||
|
||||
void QTestResult::reset()
|
||||
@ -322,12 +322,12 @@ bool QTestResult::skipCurrentTest()
|
||||
|
||||
void QTestResult::setCurrentAppName(const char *appName)
|
||||
{
|
||||
QTest::currentAppName = appName;
|
||||
::currentAppName = appName;
|
||||
}
|
||||
|
||||
const char *QTestResult::currentAppName()
|
||||
{
|
||||
return QTest::currentAppName;
|
||||
return ::currentAppName;
|
||||
}
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
Loading…
Reference in New Issue
Block a user