]> git.saurik.com Git - wxWidgets.git/commitdiff
fix typos introduced by error in r63870 (see #10673)
authorFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Tue, 6 Apr 2010 22:51:11 +0000 (22:51 +0000)
committerFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Tue, 6 Apr 2010 22:51:11 +0000 (22:51 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63886 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/filename.h
interface/wx/filename.h
src/common/filename.cpp

index cc8806b275ed124df75f49670e191cbece103ace..8f9de3bb3a3f51b2c5fa8de1387ce985f009f96f 100644 (file)
@@ -65,15 +65,14 @@ enum wxPathFormat
     wxPATH_MAX // Not a valid value for specifying path format
 };
 
-// different convention that may be used with GetHumanReadableSize()
+// different conventions that may be used with GetHumanReadableSize()
 enum wxSizeConvention
 {
-    wxSIZE_CONV_TRADIONAL,  // 1024 bytes = 1 KB
-    wxSIZE_CONV_IEC,        // 1024 bytes = 1 KiB
-    wxSIZE_CONV_SI          // 1000 bytes = 1 KB
+    wxSIZE_CONV_TRADITIONAL,  // 1024 bytes = 1 KB
+    wxSIZE_CONV_IEC,          // 1024 bytes = 1 KiB
+    wxSIZE_CONV_SI            // 1000 bytes = 1 KB
 };
 
-
 // the kind of normalization to do with the file name: these values can be
 // or'd together to perform several operations at once
 enum wxPathNormalize
@@ -552,12 +551,12 @@ public:
     wxString
     GetHumanReadableSize(const wxString& nullsize = _("Not available"),
                          int precision = 1,
-                         wxSizeConvention conv = wxSIZE_CONV_TRADIONAL) const;
+                         wxSizeConvention conv = wxSIZE_CONV_TRADITIONAL) const;
     static wxString
     GetHumanReadableSize(const wxULongLong& sz,
                          const wxString& nullsize = _("Not available"),
                          int precision = 1,
-                         wxSizeConvention conv = wxSIZE_CONV_TRADIONAL);
+                         wxSizeConvention conv = wxSIZE_CONV_TRADITIONAL);
 #endif // wxUSE_LONGLONG
 
 
index 17c783f03c88cf4fcdea3928bc302f70e4ff0bfb..1b098a6acbf9937f226beca225453d03c6bdcbe4 100644 (file)
@@ -38,13 +38,13 @@ enum wxPathFormat
 enum wxSizeConvention
 {
     /// 1000 bytes = 1KiB.
-    wxSIZE_CONV_REAL_SI,
+    wxSIZE_CONV_IEC,
 
     /// 1000 bytes = 1KB.
-    wxSIZE_CONV_TRAD_1000,
+    wxSIZE_CONV_SI,
 
     /// 1024 bytes = 1KB.
-    wxSIZE_CONV_TRAD_1024
+    wxSIZE_CONV_TRADITIONAL
 };
 
 
@@ -568,13 +568,13 @@ public:
     wxString
     GetHumanReadableSize(const wxString& failmsg = _("Not available"),
                          int precision = 1,
-                         wxSizeConvention conv = wxSIZE_CONV_TRADIONAL) const;
+                         wxSizeConvention conv = wxSIZE_CONV_TRADITIONAL) const;
 
     static wxString
     GetHumanReadableSize(const wxULongLong& bytes,
                          const wxString& nullsize = _("Not available"),
                          int precision = 1,
-                         wxSizeConvention conv = wxSIZE_CONV_REAL_SI);
+                         wxSizeConvention conv = wxSIZE_CONV_TRADITIONAL);
     //@}
 
     /**
index 8fa76ef7bf9f644a3b271d4594af31366501e8f5..5c457be39cddcce455f7d1770a0b30b3e284f057 100644 (file)
@@ -2665,7 +2665,7 @@ wxString wxFileName::GetHumanReadableSize(const wxULongLong &bs,
             biInfix = "i";
             // fall through
 
-        case wxSIZE_CONV_TRADIONAL:
+        case wxSIZE_CONV_TRADITIONAL:
             multiplier = 1024.;
             break;