From f79f1604a026283f47df6a231c4348ac0f44f552 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Mon, 29 May 2006 06:52:46 +0000 Subject: [PATCH] revert forward declaration of hashmap, it doesn't work with STL git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39419 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/gdicmn.h | 4 +++- src/common/gdicmn.cpp | 3 --- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/include/wx/gdicmn.h b/include/wx/gdicmn.h index 0c27e93a9b..16888e6ae5 100644 --- a/include/wx/gdicmn.h +++ b/include/wx/gdicmn.h @@ -20,6 +20,7 @@ #include "wx/list.h" #include "wx/string.h" #include "wx/fontenc.h" +#include "wx/hashmap.h" #include "wx/math.h" // --------------------------------------------------------------------------- @@ -36,7 +37,6 @@ class WXDLLIMPEXP_CORE wxPalette; class WXDLLIMPEXP_CORE wxPen; class WXDLLIMPEXP_CORE wxRegion; class WXDLLIMPEXP_BASE wxString; -class wxStringToColourHashMap; // --------------------------------------------------------------------------- // constants @@ -494,6 +494,8 @@ public: #endif }; +WX_DECLARE_STRING_HASH_MAP(wxColour*, wxStringToColourHashMap); + class WXDLLEXPORT wxColourDatabase { public: diff --git a/src/common/gdicmn.cpp b/src/common/gdicmn.cpp index 6d3faf11f7..512fa5e23e 100644 --- a/src/common/gdicmn.cpp +++ b/src/common/gdicmn.cpp @@ -31,7 +31,6 @@ #include "wx/colour.h" #include "wx/bitmap.h" #include "wx/font.h" -#include "wx/hashmap.h" WXDLLIMPEXP_DATA_CORE(wxBrushList*) wxTheBrushList; WXDLLIMPEXP_DATA_CORE(wxFontList*) wxTheFontList; @@ -50,8 +49,6 @@ WXDLLIMPEXP_DATA_CORE(wxPen) wxNullPen; WXDLLIMPEXP_DATA_CORE(wxPalette) wxNullPalette; #endif -WX_DECLARE_STRING_HASH_MAP(wxColour*, wxStringToColourHashMap); - const wxSize wxDefaultSize(wxDefaultCoord, wxDefaultCoord); const wxPoint wxDefaultPosition(wxDefaultCoord, wxDefaultCoord);