Mercurial > hg > orthanc-databases
diff MySQL/Plugins/MySQLStorageArea.h @ 186:6fe74f9a516e
cppcheck
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 16 Dec 2020 15:05:19 +0100 |
parents | 0b3e9ee53c46 |
children | 3236894320d6 |
line wrap: on
line diff
--- a/MySQL/Plugins/MySQLStorageArea.h Wed Dec 16 13:59:17 2020 +0100 +++ b/MySQL/Plugins/MySQLStorageArea.h Wed Dec 16 15:05:19 2020 +0100 @@ -36,36 +36,36 @@ MySQLStorageArea& that_; public: - Factory(MySQLStorageArea& that) : + explicit Factory(MySQLStorageArea& that) : that_(that) { } - virtual Dialect GetDialect() const + virtual Dialect GetDialect() const ORTHANC_OVERRIDE { return Dialect_MySQL; } - virtual IDatabase* Open() + virtual IDatabase* Open() ORTHANC_OVERRIDE { return that_.OpenInternal(); } - virtual void GetConnectionRetriesParameters(unsigned int& maxConnectionRetries, unsigned int& connectionRetryInterval) + virtual void GetConnectionRetriesParameters(unsigned int& maxConnectionRetries, + unsigned int& connectionRetryInterval) ORTHANC_OVERRIDE { maxConnectionRetries = that_.parameters_.GetMaxConnectionRetries(); connectionRetryInterval = that_.parameters_.GetConnectionRetryInterval(); } }; - OrthancPluginContext* context_; MySQLParameters parameters_; bool clearAll_; IDatabase* OpenInternal(); public: - MySQLStorageArea(const MySQLParameters& parameters); + explicit MySQLStorageArea(const MySQLParameters& parameters); void SetClearAll(bool clear) {