summaryrefslogtreecommitdiffstats
path: root/tests/auto/qtextstream
diff options
context:
space:
mode:
authorRohan McGovern <rohan.mcgovern@nokia.com>2010-02-16 09:47:16 +1000
committerRohan McGovern <rohan.mcgovern@nokia.com>2010-02-17 08:57:14 +1000
commitb7406af04ec83b3e8d712b42a87f6c29121b998d (patch)
tree896336e101d1408942bdb2e2919911482ecee7fc /tests/auto/qtextstream
parent757779ae3d27c260214f88411de81e1c32a688b5 (diff)
Fixed compile of these tests when Qt is configured with -qtnamespace
Diffstat (limited to 'tests/auto/qtextstream')
-rw-r--r--tests/auto/qtextstream/tst_qtextstream.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/auto/qtextstream/tst_qtextstream.cpp b/tests/auto/qtextstream/tst_qtextstream.cpp
index 8ff6bee9db..9146be2c93 100644
--- a/tests/auto/qtextstream/tst_qtextstream.cpp
+++ b/tests/auto/qtextstream/tst_qtextstream.cpp
@@ -4308,10 +4308,15 @@ void tst_QTextStream::int_write_with_locale()
// ------------------------------------------------------------------------------
// like QTEST_APPLESS_MAIN, but initialising the locale on Unix
+#if defined (Q_OS_UNIX) && !defined (Q_OS_SYMBIAN)
+QT_BEGIN_NAMESPACE
+extern bool qt_locale_initialized;
+QT_END_NAMESPACE
+#endif
+
int main(int argc, char *argv[])
{
#if defined (Q_OS_UNIX) && !defined (Q_OS_SYMBIAN)
- extern bool qt_locale_initialized;
::setlocale(LC_ALL, "");
qt_locale_initialized = true;
#endif