Skip to content

Commit

Permalink
Run clang-format on the repository
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
baylesj committed Jun 27, 2019
1 parent 879a5b8 commit ddc9e0f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/lib_json/json_value.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -853,9 +853,9 @@ bool Value::asBool() const {
case uintValue:
return value_.uint_ ? true : false;
case realValue: {
// According to JavaScript language zero or NaN is regarded as false
const auto value_classification = std::fpclassify(value_.real_);
return value_classification != FP_ZERO && value_classification != FP_NAN;
// According to JavaScript language zero or NaN is regarded as false
const auto value_classification = std::fpclassify(value_.real_);
return value_classification != FP_ZERO && value_classification != FP_NAN;
}
default:
break;
Expand Down
3 changes: 1 addition & 2 deletions src/test_lib_json/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
#include <cstring>
#include <iomanip>
#include <iostream>
#include <sstream>
#include <json/config.h>
#include <json/json.h>
#include <limits>
Expand Down Expand Up @@ -1649,7 +1648,7 @@ JSONTEST_FIXTURE(ValueTest, StaticString) {

JSONTEST_FIXTURE(ValueTest, WideString) {
// https://github.com/open-source-parsers/jsoncpp/issues/756
const std::string uni = u8"式,进"; // "\u5f0f\uff0c\u8fdb"
const std::string uni = u8"式,进"; // "\u5f0f\uff0c\u8fdb"
std::string styled;
{
Json::Value v;
Expand Down

0 comments on commit ddc9e0f

Please sign in to comment.