From 68d37a5c149adb331545c48c3b713943449b7987 Mon Sep 17 00:00:00 2001 From: Guilherme Maciel Ferreira Date: Thu, 3 Feb 2011 10:48:06 +0100 Subject: [PATCH] Given another name to the arrays to make reference with the UnitFormat enumeration --- src/stringfunc.cpp | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/stringfunc.cpp b/src/stringfunc.cpp index 23b120d..df56621 100644 --- a/src/stringfunc.cpp +++ b/src/stringfunc.cpp @@ -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(); -- 1.7.1