Skip to content

Commit a5414b5

Browse files
committed
fix VS error
1 parent 795ca77 commit a5414b5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/lib_json/json_reader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
#include <memory>
1919
#include <set>
2020
#include <sstream>
21-
#include <string.h>
2221
#include <utility>
2322

2423
#include <cstdio>
@@ -1011,6 +1010,7 @@ bool OurReader::parse(const char* beginDoc, const char* endDoc, Value& root,
10111010
if (!features_.allowComments_) {
10121011
collectComments = false;
10131012
}
1013+
10141014
begin_ = beginDoc;
10151015
end_ = endDoc;
10161016
collectComments_ = collectComments;

src/test_lib_json/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3581,7 +3581,7 @@ JSONTEST_FIXTURE_LOCAL(BuilderTest, settings) {
35813581
struct BomTest : JsonTest::TestCase {};
35823582

35833583
JSONTEST_FIXTURE_LOCAL(BomTest, withBom) {
3584-
const std::string with_bom = u8"\xEF\xBB\xBF{\"key\" : \"value\"}";
3584+
const std::string with_bom = "\xEF\xBB\xBF{\"key\" : \"value\"}";
35853585
Json::Value root;
35863586
JSONCPP_STRING errs;
35873587
std::istringstream iss(with_bom);

0 commit comments

Comments
 (0)