]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/datetimefmt.cpp
Improve default position for new TLWs in wxOSX.
[wxWidgets.git] / src / common / datetimefmt.cpp
index 7095fde8566ecbca67635ab2706f27d18ee5636f..64bb825190c80beed847ce48e06e2d7fdcd8b41e 100644 (file)
@@ -648,9 +648,10 @@ wxString wxDateTime::Format(const wxString& formatp, const TimeZone& tz) const
 
                 default:
                     // is it the format width?
-                    fmt.Empty();
-                    while ( *p == wxT('-') || *p == wxT('+') ||
-                            *p == wxT(' ') || wxIsdigit(*p) )
+                    for ( fmt.clear();
+                          *p == wxT('-') || *p == wxT('+') ||
+                            *p == wxT(' ') || wxIsdigit(*p);
+                          ++p )
                     {
                         fmt += *p;
                     }