[PATCH] fixes adl-lookup for the qHash function of simplecursor and simplerange

Floris Ruijter flo.ruijt at hotmail.com
Thu Dec 30 12:24:45 UTC 2010


---
 language/editor/simplecursor.h |    6 ++++--
 language/editor/simplerange.h  |    2 +-
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/language/editor/simplecursor.h b/language/editor/simplecursor.h
index 9bec17e..045c8d7 100644
--- a/language/editor/simplecursor.h
+++ b/language/editor/simplecursor.h
@@ -92,10 +92,12 @@ public:
      return s.space();
  }
 };
-}
-
 inline uint qHash(const KDevelop::SimpleCursor& cursor) {
     return cursor.line * 53 + cursor.column * 47;
 }
+  
+}
+
+
 
 #endif
diff --git a/language/editor/simplerange.h b/language/editor/simplerange.h
index a096caf..4e95095 100644
--- a/language/editor/simplerange.h
+++ b/language/editor/simplerange.h
@@ -96,10 +96,10 @@ public:
       return s.space();
     }
 };
-}
 
 inline uint qHash(const KDevelop::SimpleRange& range) {
     return qHash(range.start) + qHash(range.end)*41;
 }
+}
 
 #endif
-- 
1.7.2.3


--=-k9s59yRMhvmyAMAVNL+q--




More information about the KDevelop-devel mailing list