summaryrefslogtreecommitdiff
path: root/zen/format_unit.cpp
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:22:55 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:22:55 +0200
commitc4182431ac7d9d306fdd2267e082fa4cec6fec2c (patch)
tree865cca543c062b7af2586f85cee19f9af4e7614d /zen/format_unit.cpp
parent5.11 (diff)
downloadFreeFileSync-c4182431ac7d9d306fdd2267e082fa4cec6fec2c.tar.gz
FreeFileSync-c4182431ac7d9d306fdd2267e082fa4cec6fec2c.tar.bz2
FreeFileSync-c4182431ac7d9d306fdd2267e082fa4cec6fec2c.zip
5.12
Diffstat (limited to 'zen/format_unit.cpp')
-rw-r--r--zen/format_unit.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/zen/format_unit.cpp b/zen/format_unit.cpp
index 8e5b04d3..6455029f 100644
--- a/zen/format_unit.cpp
+++ b/zen/format_unit.cpp
@@ -199,7 +199,7 @@ private:
//convert LOCALE_SGROUPING to Grouping: http://blogs.msdn.com/b/oldnewthing/archive/2006/04/18/578251.aspx
replace(grouping, L';', L"");
if (endsWith(grouping, L'0'))
- grouping.resize(grouping.size() - 1);
+ grouping.pop_back();
else
grouping += L'0';
fmt.Grouping = stringTo<UINT>(grouping);
@@ -253,7 +253,7 @@ std::wstring zen::ffs_Impl::includeNumberSeparator(const std::wstring& number)
if (i <= 3)
break;
i -= 3;
- if (!isDigit(output[i - 1]))
+ if (!isDigit(output[i - 1])) //stop on +, - signs
break;
output.insert(i, thousandSep);
}
bgstack15