mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-21 03:21:43 -06:00
Mark some more methods as const
This commit is contained in:
@@ -1179,7 +1179,7 @@ objectMap DBBrowserDB::getBrowsableObjects() const
|
||||
return res;
|
||||
}
|
||||
|
||||
sqlb::ObjectPtr DBBrowserDB::getObjectByName(const QString& name) const
|
||||
const sqlb::ObjectPtr DBBrowserDB::getObjectByName(const QString& name) const
|
||||
{
|
||||
for(auto it=objMap.constBegin();it!=objMap.constEnd();++it)
|
||||
{
|
||||
|
||||
@@ -106,7 +106,7 @@ public:
|
||||
bool renameColumn(const QString& tablename, const sqlb::Table& table, const QString& name, sqlb::FieldPtr to, int move = 0);
|
||||
|
||||
objectMap getBrowsableObjects() const;
|
||||
sqlb::ObjectPtr getObjectByName(const QString& name) const;
|
||||
const sqlb::ObjectPtr getObjectByName(const QString& name) const;
|
||||
bool isOpen() const;
|
||||
bool encrypted() const { return isEncrypted; }
|
||||
bool readOnly() const { return isReadOnly; }
|
||||
|
||||
@@ -236,7 +236,7 @@ public:
|
||||
bool removeField(const QString& sFieldName);
|
||||
void setFields(const FieldVector& fields);
|
||||
void setField(int index, FieldPtr f);
|
||||
const FieldPtr& field(int index) { return m_fields[index]; }
|
||||
const FieldPtr& field(int index) const { return m_fields[index]; }
|
||||
QStringList fieldNames() const;
|
||||
|
||||
void setRowidColumn(const QString& rowid) { m_rowidColumn = rowid; }
|
||||
|
||||
Reference in New Issue
Block a user