Implement string inserter for long long. This creates a problem on mingw as gcc
gives a warning unless -Wno-format is used, one of the most useful warnings. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35906 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -955,6 +955,14 @@ public:
|
||||
// insert an unsigned long into string
|
||||
wxString& operator<<(unsigned long ul)
|
||||
{ return (*this) << Format(_T("%lu"), ul); }
|
||||
#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); }
|
||||
// insert an unsigned long long
|
||||
wxString& operator<<(wxULongLong_t ull)
|
||||
{ return (*this) << Format(_T("%") wxLongLongFmtSpec _T("u"), ull); }
|
||||
#endif
|
||||
// insert a float into string
|
||||
wxString& operator<<(float f)
|
||||
{ return (*this) << Format(_T("%f"), f); }
|
||||
|
Reference in New Issue
Block a user