diff options
author | miloyip <miloyip@gmail.com> | 2015-05-04 05:08:23 +0300 |
---|---|---|
committer | miloyip <miloyip@gmail.com> | 2015-05-04 05:08:23 +0300 |
commit | 1135ef662274db5598b0b33b168914b4d97b623d (patch) | |
tree | ff5b29853ccbd75506ba56ddc3b626a130184718 /include/rapidjson/pointer.h | |
parent | fc7b0a04a1703f142bba03090496ea2a8e96bbb2 (diff) |
Fix VC2013 false alarm warning
Diffstat (limited to 'include/rapidjson/pointer.h')
-rw-r--r-- | include/rapidjson/pointer.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/rapidjson/pointer.h b/include/rapidjson/pointer.h index d54676eb..fc654968 100644 --- a/include/rapidjson/pointer.h +++ b/include/rapidjson/pointer.h @@ -408,8 +408,7 @@ private: PercentDecodeStream is(&source[i], source + length); GenericInsituStringStream<EncodingType> os(name); Ch* begin = os.PutBegin(); - Transcoder<UTF8<>, EncodingType> transcoder; - if (!transcoder.Validate(is, os) || !is.IsValid()) { + if (!Transcoder<UTF8<>, EncodingType>().Validate(is, os) || !is.IsValid()) { parseErrorCode_ = kPointerParseErrorInvalidPercentEncoding; goto error; } @@ -517,8 +516,7 @@ private: // Transcode to UTF8 sequence GenericStringStream<typename ValueType::EncodingType> source(&t->name[j]); PercentEncodeStream<OutputStream> target(os); - Transcoder<EncodingType, UTF8<> > transcoder; - if (!transcoder.Validate(source, target)) + if (!Transcoder<EncodingType, UTF8<> >().Validate(source, target)) return false; j += source.Tell() - 1; } |