Skip to content

Commit

Permalink
Update a couple member methods which don't access class instance memb…
Browse files Browse the repository at this point in the history
…er variables to be static.
  • Loading branch information
mkoscumb committed Jan 24, 2024
1 parent 2f63392 commit 9556bc3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/offline/LogSessionDataProvider.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ namespace MAT_NS_BEGIN
std::string const m_cacheFilePath;
SessionStorageType m_storageType;
std::unique_ptr<LogSessionData> m_logSessionData;
uint64_t convertStrToLong(const std::string&);
void writeFileContents(const std::string&, uint64_t, const std::string&);
static uint64_t convertStrToLong(const std::string&);
static void writeFileContents(const std::string&, uint64_t, const std::string&);
void remove_eol(std::string& );
};
}
Expand Down
4 changes: 2 additions & 2 deletions tests/unittests/OfflineStorageTests_SQLite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class OfflineStorage_SQLiteNoAutoCommit : public OfflineStorage_SQLite
}

// Returns the number of active SQLiteDBs
int GetDbInstanceCount() {
static int GetDbInstanceCount() {
std::lock_guard<std::mutex> lock(m_initAndShutdownLock);
return m_instanceCount;
}
Expand Down Expand Up @@ -92,7 +92,7 @@ struct OfflineStorageTests_SQLite : public Test
}
}

bool fileExists(std::string const& filename)
static bool fileExists(std::string const& filename)
{
return std::ifstream(filename).good();
}
Expand Down

0 comments on commit 9556bc3

Please sign in to comment.