Fix a couple of unused QStrings
This is needed so we can add Q_WARN_UNUSED to QString. The xcb one might even be a bug. Change-Id: Ia2d2563bdd10aa747014410df4990597969f4634 Reviewed-by: Gatis Paeglis <gatis.paeglis@qt.io> Reviewed-by: Andy Shaw <andy.shaw@qt.io>
This commit is contained in:
parent
e25d7b1441
commit
19d7bd3d63
@ -304,7 +304,7 @@ QPlatformNativeInterface::NativeResourceForWindowFunction QXcbNativeInterface::n
|
||||
QPlatformNativeInterface::NativeResourceForBackingStoreFunction QXcbNativeInterface::nativeResourceFunctionForBackingStore(const QByteArray &resource)
|
||||
{
|
||||
const QByteArray lowerCaseResource = resource.toLower();
|
||||
NativeResourceForBackingStoreFunction func = handlerNativeResourceFunctionForBackingStore(resource);
|
||||
NativeResourceForBackingStoreFunction func = handlerNativeResourceFunctionForBackingStore(lowerCaseResource);
|
||||
return func;
|
||||
}
|
||||
|
||||
|
@ -345,7 +345,7 @@ static QSqlError qMakeError(const QString& err, QSqlError::ErrorType type,
|
||||
{
|
||||
int nativeCode = -1;
|
||||
QString message = qODBCWarn(p, &nativeCode);
|
||||
return QSqlError(QLatin1String("QODBC3: ") + err, qODBCWarn(p), type,
|
||||
return QSqlError(QLatin1String("QODBC3: ") + err, message, type,
|
||||
nativeCode != -1 ? QString::number(nativeCode) : QString());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user