From 874a0375ee74dccaa172582b95c75f35645d9551 Mon Sep 17 00:00:00 2001 From: Tyler Karaszewski Date: Wed, 20 Sep 2023 09:53:43 -0700 Subject: [PATCH] Fix constness for SQLiteUtils --- sqlitecluster/SQLiteUtils.cpp | 2 +- sqlitecluster/SQLiteUtils.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); };