diff --git a/src/corelib/tools/qbytearray.cpp b/src/corelib/tools/qbytearray.cpp index ac936b1d0a9..ea6f5c46268 100644 --- a/src/corelib/tools/qbytearray.cpp +++ b/src/corelib/tools/qbytearray.cpp @@ -1338,7 +1338,7 @@ QByteArray::QByteArray(const char *data, int size) QByteArray::QByteArray(int size, char ch) { if (size <= 0) { - d = const_cast(&shared_null.ba); + d = const_cast(&shared_empty.ba); } else { d = static_cast(malloc(sizeof(Data) + size + 1)); Q_CHECK_PTR(d); diff --git a/src/dbus/qdbusmetatype.cpp b/src/dbus/qdbusmetatype.cpp index b5a138f6548..0359b4da35c 100644 --- a/src/dbus/qdbusmetatype.cpp +++ b/src/dbus/qdbusmetatype.cpp @@ -78,7 +78,7 @@ QT_BEGIN_NAMESPACE class QDBusCustomTypeInfo { public: - QDBusCustomTypeInfo() : signature(0, '\0'), marshall(0), demarshall(0) + QDBusCustomTypeInfo() : signature(), marshall(0), demarshall(0) { } // Suggestion: