Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/miloyip/rapidjson.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKosta <konstantin.baumann@autodesk.com>2014-09-01 14:40:28 +0400
committerKosta <konstantin.baumann@autodesk.com>2014-09-01 14:40:28 +0400
commit88debcf02edadd8ad7c0a2a8b566bb40414541d0 (patch)
tree6295abb862da9492bdc15cb01c2e828f70944d84
parent056d0dafe4854a8136d7dc17dfbb5e4551176ce9 (diff)
typo fixed for the unit test implementation
-rw-r--r--test/unittest/valuetest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unittest/valuetest.cpp b/test/unittest/valuetest.cpp
index f5d06c31..8e3fe8f2 100644
--- a/test/unittest/valuetest.cpp
+++ b/test/unittest/valuetest.cpp
@@ -1092,7 +1092,7 @@ static void TestShortStringOptimization(const char* str) {
rapidjson::Document::AllocatorType& allocator = doc.GetAllocator();
rapidjson::Value objVal(rapidjson::kObjectType);
- objVal.AddMember(str, str, allocator);
+ objVal.AddMember(str, len, allocator);
EXPECT_TRUE(objVal.HasMember(str));
const rapidjson::Value& member = objVal[str];