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

List:       kde-devel
Subject:    Re: problem building kdesupport/soprano against Qt4.5
From:       Brad Hards <bradh () frogmouth ! net>
Date:       2008-08-23 5:54:15
Message-ID: 200808231554.16342.bradh () frogmouth ! net
[Download RAW message or body]

On Saturday 23 August 2008 02:52:31 pm Brad Hards wrote:
> On Friday 22 August 2008 08:46:25 pm Brad Hards wrote:
> I did the same kind of namespace wrapping:
<bogus diff deleted>
> and it now compiles, but won't link:
<snip>

In my defence, I'm sick.

Here is a working patch:

Index: core/resourcefiltermodel.cpp
===================================================================
--- core/resourcefiltermodel.cpp        (revision 850712)
+++ core/resourcefiltermodel.cpp        (working copy)
@@ -41,13 +41,19 @@

 using namespace Soprano;

-
+namespace Soprano {
 uint qHash( const Soprano::Node& node )
 {
     return qHash( node.toString() );
 }

+}

+static inline uint qHash( const QUrl& url ) {
+    return qHash( url.toString() );
+}
+
+
 class Nepomuk::ResourceFilterModel::Private
 {
 public:
Index: core/resourcefiltermodel.h
===================================================================
--- core/resourcefiltermodel.h  (revision 850712)
+++ core/resourcefiltermodel.h  (working copy)
@@ -113,7 +113,9 @@
     };
 }

-
+namespace Soprano
+{
 uint qHash( const Soprano::Node& node );
+}

 #endif
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

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