diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2010-02-22 08:21:49 (GMT) |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2010-02-22 09:41:43 (GMT) |
commit | 1ecfec9950fb66378035f92be8c8b13b1b891872 (patch) | |
tree | 3d9b4bb416c0aefc8a64e2d992638e74fcff44de | |
parent | dab883be81f6037361e5c870d957686961515f4e (diff) | |
download | Qt-1ecfec9950fb66378035f92be8c8b13b1b891872.zip Qt-1ecfec9950fb66378035f92be8c8b13b1b891872.tar.gz Qt-1ecfec9950fb66378035f92be8c8b13b1b891872.tar.bz2 |
Fix compilation on Windows
For some reason, the MSVC compiler choose the
operator+(const QString &, const QString &) instead of
operator+(const WebCore::String &, const WebCore::String &)
resulting in errors when QT_USE_FAST_OPERATOR_PLUS is used
Reviewed-by: Jocelyn Turcotte
-rw-r--r-- | src/3rdparty/webkit/WebCore/dom/XMLTokenizerQt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/3rdparty/webkit/WebCore/dom/XMLTokenizerQt.cpp b/src/3rdparty/webkit/WebCore/dom/XMLTokenizerQt.cpp index 79fc51e..5c87fe6 100644 --- a/src/3rdparty/webkit/WebCore/dom/XMLTokenizerQt.cpp +++ b/src/3rdparty/webkit/WebCore/dom/XMLTokenizerQt.cpp @@ -368,7 +368,7 @@ static inline void handleElementNamespaces(Element* newElement, const QXmlStream for (int i = 0; i < ns.count(); ++i) { const QXmlStreamNamespaceDeclaration &decl = ns[i]; String namespaceURI = decl.namespaceUri(); - String namespaceQName = decl.prefix().isEmpty() ? String("xmlns") : String("xmlns:") + decl.prefix(); + String namespaceQName = decl.prefix().isEmpty() ? String("xmlns") : String("xmlns:") + String(decl.prefix()); newElement->setAttributeNS("http://www.w3.org/2000/xmlns/", namespaceQName, namespaceURI, ec); if (ec) // exception setting attributes return; |