X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c574bfa9022576fd0444be7155b0e22e6f6b8d85..7dd6983e0bc7dc7d75b0a86e09da72e9c621e221:/src/common/bmpcboxcmn.cpp?ds=sidebyside diff --git a/src/common/bmpcboxcmn.cpp b/src/common/bmpcboxcmn.cpp index 0e869aeedb..1fa3c83ffa 100644 --- a/src/common/bmpcboxcmn.cpp +++ b/src/common/bmpcboxcmn.cpp @@ -3,7 +3,6 @@ // Purpose: wxBitmapComboBox // Author: Jaakko Salli // Created: 2008-04-09 -// RCS-ID: $Id$ // Copyright: (c) 2008 Jaakko Salli // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -38,7 +37,7 @@ #include "wx/odcombo.h" -const wxChar wxBitmapComboBoxNameStr[] = wxT("bitmapComboBox"); +const char wxBitmapComboBoxNameStr[] = "bitmapComboBox"; #if defined(wxBITMAPCOMBOBOX_OWNERDRAWN_BASED) @@ -222,7 +221,7 @@ void wxBitmapComboBoxBase::DrawItem(wxDC& dc, true); } - if ( text.length() ) + if ( !text.empty() ) dc.DrawText(text, rect.x + m_imgAreaWidth + 1, rect.y + (rect.height-dc.GetCharHeight())/2); @@ -235,7 +234,7 @@ wxCoord wxBitmapComboBoxBase::MeasureItem(size_t WXUNUSED(item)) const int imgHeightArea = m_usedImgSize.y + 2; return imgHeightArea > m_fontHeight ? imgHeightArea : m_fontHeight; } - + return wxBCB_DEFAULT_ITEM_HEIGHT; }