[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdelibs/kparts
From:       David Faure <faure () kde ! org>
Date:       2010-05-11 18:52:38
Message-ID: 20100511185238.E6B11AC8B2 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1125566 by dfaure:

Add operator== to fix compilation issues with QHash stuff.


 M  +2 -0      scriptableextension.h  


--- trunk/KDE/kdelibs/kparts/scriptableextension.h #1125565:1125566
@@ -91,6 +91,7 @@
 
         Object(): owner(0), objId(0) {}
         Object(ScriptableExtension* o, quint64 id): owner(o), objId(id) {}
+        bool operator==(const Object& other) const { return owner == other.owner && \
objId == other.objId; }  };
 
     /// Function references are a pair of an object and a field in it.
@@ -103,6 +104,7 @@
 
         FunctionRef() {}
         FunctionRef(const Object& b, const QString&f): base(b), field(f) {}
+        bool operator==(const FunctionRef& other) const { return base == other.base \
&& field == other.field; }  };
 
     //@}


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic