From c6fbe2f0c8cd9321dd48ff4a87e111ef19e4a99b Mon Sep 17 00:00:00 2001 From: =?utf8?q?W=C5=82odzimierz=20Skiba?= Date: Mon, 18 Oct 2004 13:00:11 +0000 Subject: [PATCH] Unnecessary const_ prefix removed (blindly). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29967 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/cshelp.cpp | 2 +- src/generic/grid.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/common/cshelp.cpp b/src/common/cshelp.cpp index a532528bb1..5d5f7f200f 100644 --- a/src/common/cshelp.cpp +++ b/src/common/cshelp.cpp @@ -352,7 +352,7 @@ void wxSimpleHelpProvider::AddHelp(wxWindowBase *window, const wxString& text) void wxSimpleHelpProvider::AddHelp(wxWindowID id, const wxString& text) { - wxLongToStringHashMap::const_key_type key = (wxLongToStringHashMap::const_key_type)id; + wxLongToStringHashMap::key_type key = (wxLongToStringHashMap::key_type)id; m_hashIds.erase(key); m_hashIds[key] = text; } diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index d6d183b204..96c00390b8 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -9541,7 +9541,7 @@ void wxGrid::SetColSize( int col, int width ) void wxGrid::SetColMinimalWidth( int col, int width ) { if (width > GetColMinimalAcceptableWidth()) { - wxLongToLongHashMap::const_key_type key = (wxLongToLongHashMap::const_key_type)col; + wxLongToLongHashMap::key_type key = (wxLongToLongHashMap::key_type)col; m_colMinWidths[key] = width; } } @@ -9549,21 +9549,21 @@ void wxGrid::SetColMinimalWidth( int col, int width ) void wxGrid::SetRowMinimalHeight( int row, int width ) { if (width > GetRowMinimalAcceptableHeight()) { - wxLongToLongHashMap::const_key_type key = (wxLongToLongHashMap::const_key_type)row; + wxLongToLongHashMap::key_type key = (wxLongToLongHashMap::key_type)row; m_rowMinHeights[key] = width; } } int wxGrid::GetColMinimalWidth(int col) const { - wxLongToLongHashMap::const_key_type key = (wxLongToLongHashMap::const_key_type)col; + wxLongToLongHashMap::key_type key = (wxLongToLongHashMap::key_type)col; wxLongToLongHashMap::const_iterator it = m_colMinWidths.find(key); return it != m_colMinWidths.end() ? (int)it->second : m_minAcceptableColWidth; } int wxGrid::GetRowMinimalHeight(int row) const { - wxLongToLongHashMap::const_key_type key = (wxLongToLongHashMap::const_key_type)row; + wxLongToLongHashMap::key_type key = (wxLongToLongHashMap::key_type)row; wxLongToLongHashMap::const_iterator it = m_rowMinHeights.find(key); return it != m_rowMinHeights.end() ? (int)it->second : m_minAcceptableRowHeight; } -- 2.45.2