Merge branch 'master' of ssh://drop.maemo.org/git/mdictionary
[mdictionary] / src / include / CommonDictInterface.h
index 4e8cebc..b9ed0bb 100644 (file)
@@ -76,13 +76,13 @@ class CommonDictInterface : public QObject, public AccentsNormalizer {
     virtual QString search(QString key) = 0;
 
     //! \returns unique value (unique for every dictionary, not plugin)
-    uint hash() const {
+    virtual uint hash() const {
         return _hash;
     }
 
     //! sets unique value (unique for every dictionary, not plugin)
-    void setHash(uint) {
-        this->_hash=_hash;
+    virtual void setHash(uint h) {
+        this->_hash=h;
     }
 
     //! returns current plugin settings
@@ -137,7 +137,6 @@ protected:
         return string;
     }
 
-private:
     uint _hash;
 
 };