diff --git a/sqlitecluster/SQLiteUtils.cpp b/sqlitecluster/SQLiteUtils.cpp index db16cccca..7b1a363fb 100644 --- a/sqlitecluster/SQLiteUtils.cpp +++ b/sqlitecluster/SQLiteUtils.cpp @@ -4,7 +4,7 @@ #include #include -int64_t SQLiteUtils::getRandomID(SQLite& db, const string& tableName, const string& column) { +int64_t SQLiteUtils::getRandomID(const SQLite& db, const string& tableName, const string& column) { int64_t newID = 0; while (!newID) { // Select a random number. diff --git a/sqlitecluster/SQLiteUtils.h b/sqlitecluster/SQLiteUtils.h index 12b3d1b40..189ceb016 100644 --- a/sqlitecluster/SQLiteUtils.h +++ b/sqlitecluster/SQLiteUtils.h @@ -10,5 +10,5 @@ class SQLiteUtils { public: // Generates a random ID and checks the given tableName and column to ensure // uniqueness. - static int64_t getRandomID(SQLite& db, const string& tableName, const string& column); + static int64_t getRandomID(const SQLite& db, const string& tableName, const string& column); };