summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergio Ahumada <sergio.ahumada@digia.com>2013-11-08 18:19:52 +0100
committerSergio Ahumada <sergio.ahumada@digia.com>2013-11-08 18:19:52 +0100
commitc3618f6cdab6acdf745295d2ffa2755eabef72e7 (patch)
treef6119294a287787a6a8bcf644f81d4ab723cdc89
parent75d5bdc22e218bcf164c315e4a00bc89561aba81 (diff)
parent97f266a006d82cc8554915cba6bf767b93d71a06 (diff)
downloadqtxmlpatterns-c3618f6cdab6acdf745295d2ffa2755eabef72e7.tar.gz
qtxmlpatterns-c3618f6cdab6acdf745295d2ffa2755eabef72e7.tar.bz2
qtxmlpatterns-c3618f6cdab6acdf745295d2ffa2755eabef72e7.zip
Merge remote-tracking branch 'origin/stable' into dev
Change-Id: Ib71b7f22be969dae2e1f4bfc20bc8d5478679e5c
-rw-r--r--src/xmlpatterns/api/qabstractxmlnodemodel.h6
-rw-r--r--src/xmlpatterns/api/qcoloringmessagehandler.cpp3
-rw-r--r--src/xmlpatterns/doc/qtxmlpatterns.qdocconf1
-rw-r--r--tests/auto/xmlpatternssdk/ErrorHandler.cpp3
4 files changed, 6 insertions, 7 deletions
diff --git a/src/xmlpatterns/api/qabstractxmlnodemodel.h b/src/xmlpatterns/api/qabstractxmlnodemodel.h
index 98148f7..363d6d3 100644
--- a/src/xmlpatterns/api/qabstractxmlnodemodel.h
+++ b/src/xmlpatterns/api/qabstractxmlnodemodel.h
@@ -92,10 +92,8 @@ namespace QPatternist
};
void *pointer() const
{
- /* Constructing to qptrdiff means we avoid warnings.
- */
- char *null = 0;
- return null + qptrdiff(data);
+ // Constructing via qptrdiff avoids warnings:
+ return reinterpret_cast<void*>(qptrdiff(data));
}
Data additionalData;
diff --git a/src/xmlpatterns/api/qcoloringmessagehandler.cpp b/src/xmlpatterns/api/qcoloringmessagehandler.cpp
index 59be099..f55f96d 100644
--- a/src/xmlpatterns/api/qcoloringmessagehandler.cpp
+++ b/src/xmlpatterns/api/qcoloringmessagehandler.cpp
@@ -136,12 +136,11 @@ void ColoringMessageHandler::handleMessage(QtMsgType type,
break;
}
case QtCriticalMsg:
- case QtTraceMsg:
/* Fallthrough. */
case QtDebugMsg:
{
Q_ASSERT_X(false, Q_FUNC_INFO,
- "message() is not supposed to receive QtCriticalMsg, QtTraceMsg or QtDebugMsg.");
+ "message() is not supposed to receive QtCriticalMsg or QtDebugMsg.");
return;
}
}
diff --git a/src/xmlpatterns/doc/qtxmlpatterns.qdocconf b/src/xmlpatterns/doc/qtxmlpatterns.qdocconf
index dc0a265..599f864 100644
--- a/src/xmlpatterns/doc/qtxmlpatterns.qdocconf
+++ b/src/xmlpatterns/doc/qtxmlpatterns.qdocconf
@@ -2,6 +2,7 @@ include($QT_INSTALL_DOCS/global/qt-module-defaults.qdocconf)
# Name of the project which must match the outputdir. Determines the .index file
project = QtXmlPatterns
+url = http://qt-project.org/doc/qt-$QT_VER
# Directories in which to search for files to document and images.
# By default set to the root directory of the project for sources
diff --git a/tests/auto/xmlpatternssdk/ErrorHandler.cpp b/tests/auto/xmlpatternssdk/ErrorHandler.cpp
index 5b21d83..74a6a6d 100644
--- a/tests/auto/xmlpatternssdk/ErrorHandler.cpp
+++ b/tests/auto/xmlpatternssdk/ErrorHandler.cpp
@@ -88,7 +88,8 @@ void qMessageHandler(QtMsgType type, const QMessageLogContext &, const QString &
return;
}
case QtDebugMsg: /* This enum is handled above in the if-clause. */
- case QtTraceMsg:
+ /* Fallthrough. */
+ default:
{
Q_ASSERT(false);
return;