tst_qurlinternal: use qurl_p.h instead of declaring the functions
authorThiago Macieira <thiago.macieira@intel.com>
Mon, 20 Aug 2012 11:19:46 +0000 (13:19 +0200)
committerQt by Nokia <qt-info@nokia.com>
Mon, 20 Aug 2012 19:59:28 +0000 (21:59 +0200)
Just in case someone (like me) changes the function signatures or adds
new functions.

Change-Id: I1025fea012d95ffe89acaf799aa58fd2b0babc80
Reviewed-by: David Faure <faure@kde.org>
src/corelib/io/qurl_p.h
tests/auto/corelib/io/qurlinternal/tst_qurlinternal.cpp

index a1efb29..e55ba4a 100644 (file)
@@ -173,7 +173,7 @@ public:
 
 // in qurlrecode.cpp
 extern Q_AUTOTEST_EXPORT int qt_urlRecode(QString &appendTo, const QChar *begin, const QChar *end,
-                                          QUrl::ComponentFormattingOptions encoding, const ushort *tableModifications);
+                                          QUrl::ComponentFormattingOptions encoding, const ushort *tableModifications = 0);
 
 // in qurlidna.cpp
 enum AceOperation { ToAceOnly, NormalizeAce };
index 67e4302..e008133 100644 (file)
 #include <QtTest/QtTest>
 
 #include "private/qtldurl_p.h"
-
-QT_BEGIN_NAMESPACE
-Q_CORE_EXPORT extern void qt_nameprep(QString *source, int from);
-Q_CORE_EXPORT extern bool qt_check_std3rules(const QChar *, int);
-Q_CORE_EXPORT void qt_punycodeEncoder(const QChar *s, int ucLength, QString *output);
-Q_CORE_EXPORT QString qt_punycodeDecoder(const QString &pc);
-Q_CORE_EXPORT int qt_urlRecode(QString &appendTo, const QChar *input, const QChar *end,
-                               QUrl::ComponentFormattingOptions encoding, const ushort *tableModifications = 0);
-QT_END_NAMESPACE
+#include "private/qurl_p.h"
 
 // For testsuites
 #define IDNA_ACE_PREFIX "xn--"