diff options
| author | 2017-02-02 09:50:45 -0500 | |
|---|---|---|
| committer | 2017-02-02 09:50:45 -0500 | |
| commit | 205eef2da667b2cb20678c8a4e7a0749bc454707 (patch) | |
| tree | cff7a047e4668815da70bf638ba037088c86ffaa /src/kvilib | |
| parent | Fixes unintentional hiding of local variable in nested scope (diff) | |
| download | KVIrc-205eef2da667b2cb20678c8a4e7a0749bc454707.tar.gz KVIrc-205eef2da667b2cb20678c8a4e7a0749bc454707.tar.bz2 KVIrc-205eef2da667b2cb20678c8a4e7a0749bc454707.zip | |
Encryption: A fix and some code cleanup
* Fixes spelling error in function name that fails to override base class virtual function
* Adds const to functions that should have it
* Cleans-up some formatting
Diffstat (limited to 'src/kvilib')
| -rw-r--r-- | src/kvilib/ext/KviCryptEngine.h | 10 | ||||
| -rw-r--r-- | src/kvilib/ext/KviCryptEngineDescription.h | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/kvilib/ext/KviCryptEngine.h b/src/kvilib/ext/KviCryptEngine.h index 72a8da808..6539cf1b5 100644 --- a/src/kvilib/ext/KviCryptEngine.h +++ b/src/kvilib/ext/KviCryptEngine.h @@ -89,8 +89,8 @@ private: int m_iMaxEncryptLen; public: - void setMaxEncryptLen(int m) { m_iMaxEncryptLen = m; }; - int maxEncryptLen() { return m_iMaxEncryptLen; }; + void setMaxEncryptLen(int m) { m_iMaxEncryptLen = m; } + int maxEncryptLen() const { return m_iMaxEncryptLen; } virtual bool init(const char * encKey, int encKeyLen, const char * decKey, int decKeyLen); // // Encrypts utf8 plainText and returns the encrypted @@ -120,13 +120,13 @@ public: // of the last error or an empty string if there // was no error after the last init() call. // - const QString & lastError() { return m_szLastError; }; + const QString & lastError() const { return m_szLastError; } protected: // // The following two should have clear meaning // - void clearLastError() { m_szLastError = ""; }; - void setLastError(const QString & err) { m_szLastError = err; }; + void clearLastError() { m_szLastError = ""; } + void setLastError(const QString & err) { m_szLastError = err; } #endif //COMPILE_CRYPT_SUPPORT }; diff --git a/src/kvilib/ext/KviCryptEngineDescription.h b/src/kvilib/ext/KviCryptEngineDescription.h index 524e1d311..8347b20e6 100644 --- a/src/kvilib/ext/KviCryptEngineDescription.h +++ b/src/kvilib/ext/KviCryptEngineDescription.h @@ -40,8 +40,8 @@ class KVILIB_API KviCryptEngineDescription : public KviHeapObject { public: - KviCryptEngineDescription(){}; - virtual ~KviCryptEngineDescription(){}; + KviCryptEngineDescription(){} + virtual ~KviCryptEngineDescription(){} public: QString m_szName; /**< engine name */ |
