forked from qt-creator/qt-creator
Clang: Cleanup string interface of sqlite
We only will need the utf8 optimized SmallString for the indexer database. So we remove all other string bindings, QByteArray and QVariant. Change-Id: I4a77901a80b26bf292fc85df535c2ccf3a8ab52f Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -25,6 +25,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <utils/smallstringfwd.h>
|
||||
|
||||
#include <QtGlobal>
|
||||
|
||||
#if defined(BUILD_SQLITE_LIBRARY)
|
||||
@@ -35,11 +37,6 @@
|
||||
# define SQLITE_EXPORT Q_DECL_IMPORT
|
||||
#endif
|
||||
|
||||
|
||||
namespace Sqlite {
|
||||
SQLITE_EXPORT void registerTypes();
|
||||
}
|
||||
|
||||
enum class ColumnType {
|
||||
Numeric,
|
||||
Integer,
|
||||
@@ -71,17 +68,3 @@ enum TextEncoding {
|
||||
#endif
|
||||
|
||||
};
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
template <typename T> class QVector;
|
||||
template <typename T> class QSet;
|
||||
template <class Key, class T> class QHash;
|
||||
template <class Key, class T> class QMap;
|
||||
class QVariant;
|
||||
QT_END_NAMESPACE
|
||||
|
||||
class Utf8String;
|
||||
class Utf8StringVector;
|
||||
|
||||
typedef QMap<Utf8String, QVariant> RowDictionary;
|
||||
typedef QVector<RowDictionary> RowDictionaries;
|
||||
|
||||
Reference in New Issue
Block a user