diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2010-10-18 13:54:42 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2010-10-18 13:54:42 (GMT) |
commit | 13fa1c4c875c8fa6934ebef063b27b5559a55cac (patch) | |
tree | bd4bdc18a815de55ff07bb800380cddafdffd430 | |
parent | b317eb32c495cbedf5553de333ffdafbf3d75fc4 (diff) | |
parent | 8033d331b0e96b52b01f6e918ba61812998c8b85 (diff) | |
download | Qt-13fa1c4c875c8fa6934ebef063b27b5559a55cac.zip Qt-13fa1c4c875c8fa6934ebef063b27b5559a55cac.tar.gz Qt-13fa1c4c875c8fa6934ebef063b27b5559a55cac.tar.bz2 |
Merge branch 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-1 into master-integration
* 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-1:
tst_moc: Include the right files for Clang and LLVM
Add a few default-constructors to comply with C++'03 [dcl.init] p9
Help the compiler look up erase() and insert() in Q3ValueVector
Explicitly inherit from NSOpenSavePanelDelegate on Mac OS 10.6 and above
-rw-r--r-- | src/corelib/xml/qxmlstream.h | 1 | ||||
-rw-r--r-- | src/gui/dialogs/qfiledialog_mac.mm | 8 | ||||
-rw-r--r-- | src/qt3support/tools/q3valuevector.h | 4 | ||||
-rw-r--r-- | tests/auto/moc/moc.pro | 2 | ||||
-rw-r--r-- | tests/auto/qxmlquery/tst_qxmlquery.cpp | 2 |
5 files changed, 13 insertions, 4 deletions
diff --git a/src/corelib/xml/qxmlstream.h b/src/corelib/xml/qxmlstream.h index 402afa3..d7143bd 100644 --- a/src/corelib/xml/qxmlstream.h +++ b/src/corelib/xml/qxmlstream.h @@ -169,6 +169,7 @@ Q_DECLARE_TYPEINFO(QXmlStreamAttribute, Q_MOVABLE_TYPE); class Q_XMLSTREAM_EXPORT QXmlStreamAttributes : public QVector<QXmlStreamAttribute> { public: + inline QXmlStreamAttributes() {} QStringRef value(const QString &namespaceUri, const QString &name) const; QStringRef value(const QString &namespaceUri, const QLatin1String &name) const; QStringRef value(const QLatin1String &namespaceUri, const QLatin1String &name) const; diff --git a/src/gui/dialogs/qfiledialog_mac.mm b/src/gui/dialogs/qfiledialog_mac.mm index caf52e4..6c1d7f6 100644 --- a/src/gui/dialogs/qfiledialog_mac.mm +++ b/src/gui/dialogs/qfiledialog_mac.mm @@ -85,7 +85,13 @@ QT_USE_NAMESPACE @class QT_MANGLE_NAMESPACE(QNSOpenSavePanelDelegate); -@interface QT_MANGLE_NAMESPACE(QNSOpenSavePanelDelegate) : NSObject { +@interface QT_MANGLE_NAMESPACE(QNSOpenSavePanelDelegate) +#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6 + : NSObject<NSOpenSavePanelDelegate> +#else + : NSObject +#endif +{ @public NSOpenPanel *mOpenPanel; NSSavePanel *mSavePanel; diff --git a/src/qt3support/tools/q3valuevector.h b/src/qt3support/tools/q3valuevector.h index cdd5fcd..f86cb30 100644 --- a/src/qt3support/tools/q3valuevector.h +++ b/src/qt3support/tools/q3valuevector.h @@ -84,9 +84,9 @@ public: void resize(int n, const T& val = T()) { if (n < this->size()) - erase(this->begin() + n, this->end()); + this->erase(this->begin() + n, this->end()); else - insert(this->end(), n - this->size(), val); + this->insert(this->end(), n - this->size(), val); } diff --git a/tests/auto/moc/moc.pro b/tests/auto/moc/moc.pro index a89ff07..4fb9ac4 100644 --- a/tests/auto/moc/moc.pro +++ b/tests/auto/moc/moc.pro @@ -17,7 +17,7 @@ HEADERS += using-namespaces.h no-keywords.h task87883.h c-comments.h backslash-n escapes-in-string-literals.h cstyle-enums.h qprivateslots.h gadgetwithnoenums.h \ dir-in-include-path.h single_function_keyword.h task192552.h task189996.h \ task234909.h task240368.h pure-virtual-signals.h -if(*-g++*|*-icc*):!irix-*:!win32-*: HEADERS += os9-newlines.h win-newlines.h +if(*-g++*|*-icc*|*-clang|*-llvm):!irix-*:!win32-*: HEADERS += os9-newlines.h win-newlines.h SOURCES += tst_moc.cpp QT += sql network svg diff --git a/tests/auto/qxmlquery/tst_qxmlquery.cpp b/tests/auto/qxmlquery/tst_qxmlquery.cpp index 2187aeb..b7c8740 100644 --- a/tests/auto/qxmlquery/tst_qxmlquery.cpp +++ b/tests/auto/qxmlquery/tst_qxmlquery.cpp @@ -455,6 +455,7 @@ void tst_QXmlQuery::assignmentOperator() const class ReturnURI : public QAbstractUriResolver { public: + ReturnURI() {} virtual QUrl resolve(const QUrl &relative, const QUrl &baseURI) const { @@ -2858,6 +2859,7 @@ void tst_QXmlQuery::useUriResolver() const , private TestFundament { public: + TestUriResolver() {} virtual QUrl resolve(const QUrl &relative, const QUrl &baseURI) const { |