mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-09-23 04:00:24 -04:00
Fix clang-format!
This commit is contained in:
parent
f493fdb475
commit
9493a577b7
@ -124,7 +124,7 @@ Iter fixZerosInTheEnd(Iter begin, Iter end, unsigned int precision) {
|
||||
}
|
||||
// Don't delete the last zero before the decimal point.
|
||||
if (begin != (end - 1) && begin != (end - 2) && *(end - 2) == '.') {
|
||||
if(precision) {
|
||||
if (precision) {
|
||||
return end;
|
||||
}
|
||||
return end - 2;
|
||||
|
@ -163,7 +163,7 @@ String valueToString(double value, bool useSpecialFloats,
|
||||
// strip the zero padding from the right
|
||||
if (precisionType == PrecisionType::decimalPlaces) {
|
||||
buffer.erase(fixZerosInTheEnd(buffer.begin(), buffer.end(), precision),
|
||||
buffer.end());
|
||||
buffer.end());
|
||||
}
|
||||
|
||||
return buffer;
|
||||
|
Loading…
x
Reference in New Issue
Block a user