Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
}
}
#endif
- qDebug("%s%s::%s %s", (const char*)buf, object->metaObject()->className(), name.toLocal8Bit().data(),
+ qDebug("%s%s::%s %s", buf.data(), object->metaObject()->className(), name.toLocal8Bit().data(),
flags.toLatin1().data());
QObjectList children = object->children();
if (!children.isEmpty()) {
#else
if (qt_debug_component()) {
qWarning("Cannot load %s into a statically linked Qt library.",
- (const char*)QFile::encodeName(fileName));
+ QFile::encodeName(fileName).data());
}
Q_UNUSED(fileName);
#endif