From a4ac80e181e7070e95dcfcf7856683d7f12ec34f Mon Sep 17 00:00:00 2001 From: Mattia Barbon Date: Wed, 8 May 2002 13:28:18 +0000 Subject: [PATCH] Fixed programming error (and BCC warning). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15426 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/hashmap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/wx/hashmap.h b/include/wx/hashmap.h index 83c63c35c3..33cd821d6d 100644 --- a/include/wx/hashmap.h +++ b/include/wx/hashmap.h @@ -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 */ \ -- 2.47.2