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

List:       kde-commits
Subject:    branches/kdepim/enterprise4/kdelibs-4.1-branch/nepomuk/core/ontology
From:       Allen Winter <winter () kde ! org>
Date:       2009-03-05 23:24:51
Message-ID: 1236295491.608043.26605.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 935702 by winterz:

fix compile for older Qt versions and not MSVC


 M  +13 -0     entity.cpp  


--- branches/kdepim/enterprise4/kdelibs-4.1-branch/nepomuk/core/ontology/entity.cpp #935701:935702
@@ -29,6 +29,19 @@
 
 #include <kicon.h>
 
+#if !defined(_MSC_VER) && (QT_VERSION < QT_VERSION_CHECK(4, 5, 0))
+uint qHash( const QUrl& url )
+{
+    return qHash( url.toString() );
+}
+#endif
+
+// uint qHash( const Nepomuk::Types::Entity& c )
+// {
+//     return (uint)(ulong)c.d.data();
+// }
+
+
 Nepomuk::Types::EntityPrivate::EntityPrivate( const QUrl& uri_ )
     : uri( uri_ ),
       available( uri_.isValid() ? -1 : 0 ),
[prev in list] [next in list] [prev in thread] [next in thread] 

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