summaryrefslogtreecommitdiffstats
path: root/src/sql/kernel/qsqlnulldriver_p.h
diff options
context:
space:
mode:
authorSona Kurazyan <sona.kurazyan@qt.io>2022-04-14 13:43:37 +0200
committerSona Kurazyan <sona.kurazyan@qt.io>2022-04-19 19:40:04 +0200
commitfbbad06751c93002754d4de26a73d43f139b82a0 (patch)
tree46d2d65746d7604bf700b61b6bf1b429eac87bc4 /src/sql/kernel/qsqlnulldriver_p.h
parent128785d0fa0dc05dbe5ef2d5c8c3ba09b7c48546 (diff)
Sql: replace remaining uses of QLatin1String with QLatin1StringView
Task-number: QTBUG-98434 Change-Id: Ia621f9d937649dda41a7b0d13a61e6f1397f6dde Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/sql/kernel/qsqlnulldriver_p.h')
-rw-r--r--src/sql/kernel/qsqlnulldriver_p.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sql/kernel/qsqlnulldriver_p.h b/src/sql/kernel/qsqlnulldriver_p.h
index 7a40199d71..2d954cffcf 100644
--- a/src/sql/kernel/qsqlnulldriver_p.h
+++ b/src/sql/kernel/qsqlnulldriver_p.h
@@ -64,7 +64,7 @@ class QSqlNullResult : public QSqlResult
public:
inline explicit QSqlNullResult(const QSqlDriver* d): QSqlResult(d)
{ QSqlResult::setLastError(
- QSqlError(QLatin1String("Driver not loaded"), QLatin1String("Driver not loaded"), QSqlError::ConnectionError)); }
+ QSqlError(QLatin1StringView("Driver not loaded"), QLatin1StringView("Driver not loaded"), QSqlError::ConnectionError)); }
protected:
inline QVariant data(int) override { return QVariant(); }
inline bool reset (const QString&) override { return false; }
@@ -94,7 +94,7 @@ class QSqlNullDriver : public QSqlDriver
public:
inline QSqlNullDriver(): QSqlDriver()
{ QSqlDriver::setLastError(
- QSqlError(QLatin1String("Driver not loaded"), QLatin1String("Driver not loaded"), QSqlError::ConnectionError)); }
+ QSqlError(QLatin1StringView("Driver not loaded"), QLatin1StringView("Driver not loaded"), QSqlError::ConnectionError)); }
inline bool hasFeature(DriverFeature) const override { return false; }
inline bool open(const QString &, const QString &, const QString &, const QString &, int, const QString&) override
{ return false; }