diff options
| author | Marco Bubke <marco.bubke@qt.io> | 2017-08-29 12:54:10 +0200 |
|---|---|---|
| committer | Marco Bubke <marco.bubke@qt.io> | 2017-08-29 16:36:57 +0000 |
| commit | 8640ef19278139ddee27b93eda1e57b9b51bddfa (patch) | |
| tree | 912e3ba0ae900d5013bed52a295ed4f8e0eb8a91 /src/libs/sqlite/sqliteexception.h | |
| parent | 7c0331ab93ff6096a2b7742688e171ddc99ed269 (diff) | |
Utils: Convert to SmallStringView for comparison
Change-Id: I38d9716225b81091e8e75b26c9c2258a2aefa987
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Diffstat (limited to 'src/libs/sqlite/sqliteexception.h')
| -rw-r--r-- | src/libs/sqlite/sqliteexception.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libs/sqlite/sqliteexception.h b/src/libs/sqlite/sqliteexception.h index 9a60cb52e0d..6801ca6d7f2 100644 --- a/src/libs/sqlite/sqliteexception.h +++ b/src/libs/sqlite/sqliteexception.h @@ -34,9 +34,9 @@ namespace Sqlite { class SQLITE_EXPORT SqliteException { public: - SqliteException(Utils::SmallString &&whatErrorHasHappen, + SqliteException(const char *whatErrorHasHappen, Utils::SmallString &&sqliteErrorMessage = Utils::SmallString()) - : m_whatErrorHasHappen(std::move(whatErrorHasHappen)), + : m_whatErrorHasHappen(whatErrorHasHappen), m_sqliteErrorMessage(std::move(sqliteErrorMessage)) { } @@ -44,7 +44,7 @@ public: void printWarning() const; private: - Utils::SmallString m_whatErrorHasHappen; + const char *m_whatErrorHasHappen; Utils::SmallString m_sqliteErrorMessage; }; |
