forked from qt-creator/qt-creator
Sqlite: Remove the Sqlite Prefix
We use a name space now, so the prefix is not of much use. Change-Id: I2b077576f94dab778add6ab2e54870f7ca18da78 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -34,10 +34,10 @@
|
||||
|
||||
namespace Sqlite {
|
||||
|
||||
class SqliteIndex
|
||||
class Index
|
||||
{
|
||||
public:
|
||||
SqliteIndex(Utils::SmallString &&tableName, Utils::SmallStringVector &&columnNames)
|
||||
Index(Utils::SmallString &&tableName, Utils::SmallStringVector &&columnNames)
|
||||
: m_tableName(std::move(tableName)),
|
||||
m_columnNames(std::move(columnNames))
|
||||
{
|
||||
@@ -63,13 +63,13 @@ public:
|
||||
void checkTableName() const
|
||||
{
|
||||
if (m_tableName.isEmpty())
|
||||
throw SqliteException("SqliteIndex has not table name!");
|
||||
throw Exception("SqliteIndex has not table name!");
|
||||
}
|
||||
|
||||
void checkColumns() const
|
||||
{
|
||||
if (m_columnNames.empty())
|
||||
throw SqliteException("SqliteIndex has no columns!");
|
||||
throw Exception("SqliteIndex has no columns!");
|
||||
}
|
||||
|
||||
private:
|
||||
@@ -77,6 +77,6 @@ private:
|
||||
Utils::SmallStringVector m_columnNames;
|
||||
};
|
||||
|
||||
using SqliteIndices = std::vector<SqliteIndex>;
|
||||
using SqliteIndices = std::vector<Index>;
|
||||
|
||||
} //
|
||||
|
||||
Reference in New Issue
Block a user