Skip to content

Commit ddc9e0f

Browse files
committed
Run clang-format on the repository
We currently don't have any checks for clang formatting as part of our check-in process, this is an incremental patch to get things compliant.
1 parent 879a5b8 commit ddc9e0f

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/lib_json/json_value.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -853,9 +853,9 @@ bool Value::asBool() const {
853853
case uintValue:
854854
return value_.uint_ ? true : false;
855855
case realValue: {
856-
// According to JavaScript language zero or NaN is regarded as false
857-
const auto value_classification = std::fpclassify(value_.real_);
858-
return value_classification != FP_ZERO && value_classification != FP_NAN;
856+
// According to JavaScript language zero or NaN is regarded as false
857+
const auto value_classification = std::fpclassify(value_.real_);
858+
return value_classification != FP_ZERO && value_classification != FP_NAN;
859859
}
860860
default:
861861
break;

src/test_lib_json/main.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
#include <cstring>
1717
#include <iomanip>
1818
#include <iostream>
19-
#include <sstream>
2019
#include <json/config.h>
2120
#include <json/json.h>
2221
#include <limits>
@@ -1649,7 +1648,7 @@ JSONTEST_FIXTURE(ValueTest, StaticString) {
16491648

16501649
JSONTEST_FIXTURE(ValueTest, WideString) {
16511650
// https://github.com/open-source-parsers/jsoncpp/issues/756
1652-
const std::string uni = u8"式,进"; // "\u5f0f\uff0c\u8fdb"
1651+
const std::string uni = u8"式,进"; // "\u5f0f\uff0c\u8fdb"
16531652
std::string styled;
16541653
{
16551654
Json::Value v;

0 commit comments

Comments
 (0)