]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed programming error (and BCC warning).
authorMattia Barbon <mbarbon@cpan.org>
Wed, 8 May 2002 13:28:18 +0000 (13:28 +0000)
committerMattia Barbon <mbarbon@cpan.org>
Wed, 8 May 2002 13:28:18 +0000 (13:28 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15426 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/hashmap.h

index 83c63c35c3f38309a1668a71b652d64622a41f49..33cd821d6db7beae29c631a9136b392f2d70443f 100644 (file)
@@ -365,7 +365,7 @@ CLASSEXP CLASSNAME \
 { \
 public: \
     CLASSNAME() { } \
-    KEY_T operator()( PAIR_T pair ) const { return pair.first; } \
+    const KEY_T& operator()( const PAIR_T& pair ) const { return pair.first; }\
     \
     /* the dummy assignment operator is needed to suppress compiler */ \
     /* warnings from hash table class' operator=(): gcc complains about */ \