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-04 19:37:13 +0400
committerKosta <konstantin.baumann@autodesk.com>2014-09-04 19:37:13 +0400
commit00ac1024eee997815f422f67055415cc1b3ccb3b (patch)
treeb53f4452329de4c11aea165f8c1bacf7de77cec5 /include/rapidjson
parente70494bc00a60e47be06cb625889b09fe63342ea (diff)
more changes
Diffstat (limited to 'include/rapidjson')
-rw-r--r--include/rapidjson/reader.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/rapidjson/reader.h b/include/rapidjson/reader.h
index e853bea4..885fe229 100644
--- a/include/rapidjson/reader.h
+++ b/include/rapidjson/reader.h
@@ -637,8 +637,10 @@ private:
StackStream stackStream(stack_);
ParseStringToStream<parseFlags, SourceEncoding, TargetEncoding>(s, stackStream);
RAPIDJSON_PARSE_ERROR_EARLY_RETURN_VOID;
- const typename TargetEncoding::Ch* const str = stack_.template Pop<typename TargetEncoding::Ch>(stackStream.length_);
- success = (isKey ? handler.Key(str, stackStream.length_ - 1, false) : handler.String(str, stackStream.length_ - 1, false));
+ success = (isKey
+ ? handler.Key( stack_.template Pop<typename TargetEncoding::Ch>(stackStream.length_), stackStream.length_ - 1, false)
+ : handler.String(stack_.template Pop<typename TargetEncoding::Ch>(stackStream.length_), stackStream.length_ - 1, false)
+ );
}
if(!success)