]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/any.cpp
Document wxKill(wxSIGTERM) reliance on having an open window in wxMSW.
[wxWidgets.git] / src / common / any.cpp
index 074412c80e844609da892fb454c3e46bbd2d4be5..228f1770b36826fece26670ead50ddb7f023ad87 100644 (file)
@@ -453,7 +453,7 @@ bool wxAnyValueTypeImplDouble::ConvertValue(const wxAnyValueBuffer& src,
     }
     else if ( wxANY_VALUE_TYPE_CHECK_TYPE(dstType, wxString) )
     {
-        wxString s = wxString::Format(wxS("%.14g"), value);
+        wxString s = wxString::FromCDouble(value, 14);
         wxAnyValueTypeImpl<wxString>::SetValue(s, dst);
     }
     else
@@ -484,7 +484,9 @@ WX_IMPLEMENT_ANY_VALUE_TYPE(wxAnyValueTypeImpl<wxDateTime>)
 
 class wxAnyNullValue
 {
-private:
+protected:
+    // this field is unused, but can't be private to avoid Clang's
+    // "Private field 'm_dummy' is not used" warning
     void*   m_dummy;
 };