X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b2edb8f3c524f302b727386bb0a694c44fb57e7d..c4a7e284fdad7b60e698410847bf200137e72a19:/src/common/filename.cpp diff --git a/src/common/filename.cpp b/src/common/filename.cpp index 8fa76ef7bf..34d8845668 100644 --- a/src/common/filename.cpp +++ b/src/common/filename.cpp @@ -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_TRADIONAL: - multiplier = 1024.; break; case wxSIZE_CONV_SI: