Fix build error when using -qtnamespace flag

Error: qtbase/src/corelib/io/qstandardpaths_android.cpp:49:17: error: no
namespace named 'QNativeInterface'; did you mean
'XXXXX::QNativeInterface'?

Pick-to: 6.1
Change-Id: I0f9fbf1879f72683d31ee0e8603b9bb26c31ae3c
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
Assam Boudjelthia 2021-04-22 18:31:01 +03:00
parent 236ae73ed8
commit 2666f3e37d

View File

@ -46,10 +46,10 @@
#include <QtCore/qcoreapplication.h>
#include <QDir>
using namespace QNativeInterface;
QT_BEGIN_NAMESPACE
using namespace QNativeInterface;
typedef QMap<QString, QString> AndroidDirCache;
Q_GLOBAL_STATIC(AndroidDirCache, androidDirCache)