summaryrefslogtreecommitdiff
path: root/wx+/button.cpp
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:19:14 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:19:14 +0200
commit01eb8253196672c969a39587e90b49321a182428 (patch)
tree4a3b71d7913de519744466c9227fda6461c4f0b5 /wx+/button.cpp
parent5.0 (diff)
downloadFreeFileSync-01eb8253196672c969a39587e90b49321a182428.tar.gz
FreeFileSync-01eb8253196672c969a39587e90b49321a182428.tar.bz2
FreeFileSync-01eb8253196672c969a39587e90b49321a182428.zip
5.1
Diffstat (limited to 'wx+/button.cpp')
-rw-r--r--wx+/button.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/wx+/button.cpp b/wx+/button.cpp
index 9efdf071..1e9cb7f0 100644
--- a/wx+/button.cpp
+++ b/wx+/button.cpp
@@ -38,12 +38,12 @@ BitmapButton::BitmapButton(wxWindow* parent,
}
-void BitmapButton::setBitmapFront(const wxBitmap& bitmap, unsigned spaceAfter)
+void BitmapButton::setBitmapFront(const wxBitmap& bitmap, size_t spaceAfter)
{
if (!isEqual(bitmap, bitmapFront) || spaceAfter != m_spaceAfter) //avoid flicker
{
bitmapFront = bitmap;
- m_spaceAfter = spaceAfter;
+ m_spaceAfter = static_cast<unsigned int>(spaceAfter);
refreshButtonLabel();
}
}
@@ -60,12 +60,12 @@ void BitmapButton::setTextLabel(const wxString& text)
}
-void BitmapButton::setBitmapBack(const wxBitmap& bitmap, unsigned spaceBefore)
+void BitmapButton::setBitmapBack(const wxBitmap& bitmap, size_t spaceBefore)
{
if (!isEqual(bitmap, bitmapBack) || spaceBefore != m_spaceBefore) //avoid flicker
{
bitmapBack = bitmap;
- m_spaceBefore = spaceBefore;
+ m_spaceBefore = static_cast<unsigned int>(spaceBefore);
refreshButtonLabel();
}
}
@@ -106,7 +106,7 @@ wxSize getSizeNeeded(const wxString& text, wxFont& font)
wxString textFormatted = text;
textFormatted.Replace(wxT("&"), wxT(""), false); //remove accelerator
- dc.GetMultiLineTextExtent(textFormatted, &width, &height , NULL, &font);
+ dc.GetMultiLineTextExtent(textFormatted, &width, &height, nullptr, &font);
return wxSize(width, height);
}
bgstack15