avoid double-to-float conversion warnings in headers

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76288 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Paul Cornett
2014-04-05 17:13:46 +00:00
parent 7238d2761f
commit 8b3e3e594b
2 changed files with 3 additions and 3 deletions

View File

@@ -404,12 +404,12 @@ public:
Returns the floating-pointing value of the dimension in mm.
*/
float GetValueMM() const { return float(m_value) / 10.0; }
float GetValueMM() const { return m_value / 10.0f; }
/**
Sets the value of the dimension in mm.
*/
void SetValueMM(float value) { m_value = (int) ((value * 10.0) + 0.5); m_flags |= wxTEXT_ATTR_VALUE_VALID; }
void SetValueMM(float value) { m_value = (int) ((value * 10.0f) + 0.5f); m_flags |= wxTEXT_ATTR_VALUE_VALID; }
/**
Sets the integer value of the dimension.