Utils: Convert to SmallStringView for comparison

Change-Id: I38d9716225b81091e8e75b26c9c2258a2aefa987
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Marco Bubke
2017-08-29 12:54:10 +02:00
parent 7c0331ab93
commit 8640ef1927
26 changed files with 187 additions and 195 deletions

View File

@@ -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;
};