From kde-commits Tue Oct 26 12:01:01 2010 From: Daniel Molkentin Date: Tue, 26 Oct 2010 12:01:01 +0000 To: kde-commits Subject: [Soprano] f3adf38: Fix compile with Qt 4.5 where, due to internal reo Message-Id: <20101026120101.2EC73A6304 () git ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=128809645231859 commit f3adf385c8a3dc7c84551ef1c30368a9a5fcf14b branch 2.2 Author: Daniel Molkentin Date: Wed Sep 24 15:13:58 2008 +0000 Fix compile with Qt 4.5 where, due to internal reoderings and C++'es stupid namespace lookup behaviour, compilation breaks. Solved by moving the qHash function into the soprano namespace. svn path=/trunk/kdesupport/soprano/; revision=864360 diff --git a/index/cluceneindex.cpp b/index/cluceneindex.cpp index d4c0aae..2c60a6a 100644 --- a/index/cluceneindex.cpp +++ b/index/cluceneindex.cpp @@ -41,7 +41,7 @@ // indexwriter needs to be closed for deletion // indexreader needs to be closed after usage of writer -uint qHash( const Soprano::Node& node ) +uint Soprano::qHash( const Soprano::Node& node ) { return qHash( node.toString() ); } diff --git a/index/cluceneindex.h b/index/cluceneindex.h index ecd85bf..8d42e4f 100644 --- a/index/cluceneindex.h +++ b/index/cluceneindex.h @@ -259,8 +259,9 @@ namespace Soprano { Private* const d; }; } + + uint qHash( const Soprano::Node& node ); } -uint qHash( const Soprano::Node& node ); #endif diff --git a/soprano/inference/inferencemodel.cpp b/soprano/inference/inferencemodel.cpp index b84424e..cb0f172 100644 --- a/soprano/inference/inferencemodel.cpp +++ b/soprano/inference/inferencemodel.cpp @@ -65,7 +65,7 @@ static QUrl createRandomUri() // ----------------------------------------------------------------------------------------------------------------------- #include #include "statementiterator.h" -uint qHash( const Soprano::Node& node ) +uint Soprano::qHash( const Soprano::Node& node ) { return qHash( node.toString() ); } diff --git a/soprano/inference/inferencemodel.h b/soprano/inference/inferencemodel.h index 1113eb5..0e095ee 100644 --- a/soprano/inference/inferencemodel.h +++ b/soprano/inference/inferencemodel.h @@ -196,8 +196,8 @@ namespace Soprano { Private* const d; }; } -} -uint qHash( const Soprano::Node& node ); + uint qHash( const Soprano::Node& node ); +} #endif