Given another name to the arrays to make reference with the UnitFormat enumeration
authorGuilherme Maciel Ferreira <guilherme.maciel.ferreira@intra2net.com>
Thu, 3 Feb 2011 09:48:06 +0000 (10:48 +0100)
committerGuilherme Maciel Ferreira <guilherme.maciel.ferreira@intra2net.com>
Thu, 3 Feb 2011 09:48:06 +0000 (10:48 +0100)
src/stringfunc.cpp

index 23b120d..df56621 100644 (file)
@@ -894,7 +894,7 @@ string to_upper(const string &src)
 
 const int MAX_SYMBOL_FORMATS = 9;
 
-const string symbolFormatShort[MAX_SYMBOL_FORMATS] = {
+const string shortUnitFormatSymbols[MAX_SYMBOL_FORMATS] = {
         " B",
         " KB",
         " MB",
@@ -906,7 +906,7 @@ const string symbolFormatShort[MAX_SYMBOL_FORMATS] = {
         " YB"
 };
 
-const string symbolFormatLong[MAX_SYMBOL_FORMATS] = {
+const string longUnitFormatSymbols[MAX_SYMBOL_FORMATS] = {
         " Bytes",
         " KBytes",
         " MBytes",
@@ -971,12 +971,12 @@ string nice_unit_format(
    if (format == ShortUnitFormat)
    {
        out.precision(1);
-       out << size << i18n( symbolFormatShort[sizecount].c_str() );
+       out << size << i18n( shortUnitFormatSymbols[sizecount].c_str() );
    }
    else
    {
        out.precision (2);
-       out << size << i18n( symbolFormatLong[sizecount].c_str() );
+       out << size << i18n( longUnitFormatSymbols[sizecount].c_str() );
    }
 
    return out.str();