]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/filename.cpp
Document wxDocument::DeleteContents().
[wxWidgets.git] / src / common / filename.cpp
index 5c457be39cddcce455f7d1770a0b30b3e284f057..ee6fc1fe17f2c80b655bac3674a902dc61fba493 100644 (file)
@@ -98,7 +98,7 @@
     #include "wx/msw/gccpriv.h"
 #endif
 
-#ifdef __WXWINCE__
+#ifdef __WXMSW__
 #include "wx/msw/private.h"
 #endif
 
@@ -2656,17 +2656,18 @@ wxString wxFileName::GetHumanReadableSize(const wxULongLong &bs,
 
     // depending on the convention used the multiplier may be either 1000 or
     // 1024 and the binary infix may be empty (for "KB") or "i" (for "KiB")
-    double multiplier;
+    double multiplier = 1024.;
     wxString biInfix;
 
     switch ( conv )
     {
+        case wxSIZE_CONV_TRADITIONAL:
+            // nothing to do, this corresponds to the default values of both
+            // the multiplier and infix string
+            break;
+
         case wxSIZE_CONV_IEC:
             biInfix = "i";
-            // fall through
-
-        case wxSIZE_CONV_TRADITIONAL:
-            multiplier = 1024.;
             break;
 
         case wxSIZE_CONV_SI: