summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorA-Team <ateam@pad.test.qt.nokia.com>2010-11-28 23:00:12 (GMT)
committerA-Team <ateam@pad.test.qt.nokia.com>2010-11-28 23:00:12 (GMT)
commitd509cc21d3f4e3043e7cbfb5f20a1ac7caf573b0 (patch)
tree20fd28742884b496662e61977fac30e3aabc32b7
parent8080417e0e264fdf3ccf3bb0806e14d0d480202b (diff)
parentc874a2a97101e506148e852debc23a898691b892 (diff)
downloadQt-d509cc21d3f4e3043e7cbfb5f20a1ac7caf573b0.zip
Qt-d509cc21d3f4e3043e7cbfb5f20a1ac7caf573b0.tar.gz
Qt-d509cc21d3f4e3043e7cbfb5f20a1ac7caf573b0.tar.bz2
Merge branch '4.7-upstream' into 4.7-doc
-rw-r--r--src/plugins/bearer/connman/qconnmanengine.cpp1
-rw-r--r--tests/auto/qsharedpointer/tst_qsharedpointer.cpp4
2 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/bearer/connman/qconnmanengine.cpp b/src/plugins/bearer/connman/qconnmanengine.cpp
index 184ceb4..7f3501e 100644
--- a/src/plugins/bearer/connman/qconnmanengine.cpp
+++ b/src/plugins/bearer/connman/qconnmanengine.cpp
@@ -726,6 +726,7 @@ void QConnmanEngine::addNetworkConfiguration(const QString &networkPath)
if(servicePath.isEmpty()) {
id = QString::number(qHash(networkPath));
+ serv = 0;
} else {
id = QString::number(qHash(servicePath));
serv = new QConnmanServiceInterface(servicePath,this);
diff --git a/tests/auto/qsharedpointer/tst_qsharedpointer.cpp b/tests/auto/qsharedpointer/tst_qsharedpointer.cpp
index 6b4904f..a05aa97 100644
--- a/tests/auto/qsharedpointer/tst_qsharedpointer.cpp
+++ b/tests/auto/qsharedpointer/tst_qsharedpointer.cpp
@@ -283,8 +283,8 @@ void tst_QSharedPointer::operators()
QSharedPointer<char> p1;
QSharedPointer<char> p2(new char);
qptrdiff diff = p2.data() - p1.data();
- Q_ASSERT(p1.data() < p2.data());
- Q_ASSERT(diff > 0);
+ Q_ASSERT(p1.data() != p2.data());
+ Q_ASSERT(diff != 0);
// operator-
QCOMPARE(p2 - p1.data(), diff);