Modify wxString::operator<<(wxLongLong_t) to avoid warnings from mingw

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36048 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Michael Wetherell
2005-10-31 20:27:17 +00:00
parent e4809643b4
commit b7859132ae
2 changed files with 8 additions and 11 deletions

View File

@@ -958,10 +958,16 @@ public:
#if defined wxLongLong_t && !defined wxLongLongIsLong
// insert a long long if they exist and aren't longs
wxString& operator<<(wxLongLong_t ll)
{ return (*this) << Format(_T("%") wxLongLongFmtSpec _T("d"), ll); }
{
const wxChar *fmt = _T("%") wxLongLongFmtSpec _T("d");
return (*this) << Format(fmt, ll);
}
// insert an unsigned long long
wxString& operator<<(wxULongLong_t ull)
{ return (*this) << Format(_T("%") wxLongLongFmtSpec _T("u"), ull); }
{
const wxChar *fmt = _T("%") wxLongLongFmtSpec _T("u");
return (*this) << Format(fmt , ull);
}
#endif
// insert a float into string
wxString& operator<<(float f)