Fix VC2013 false alarm warning
This commit is contained in:
parent
fc7b0a04a1
commit
1135ef6622
@ -408,8 +408,7 @@ private:
|
|||||||
PercentDecodeStream is(&source[i], source + length);
|
PercentDecodeStream is(&source[i], source + length);
|
||||||
GenericInsituStringStream<EncodingType> os(name);
|
GenericInsituStringStream<EncodingType> os(name);
|
||||||
Ch* begin = os.PutBegin();
|
Ch* begin = os.PutBegin();
|
||||||
Transcoder<UTF8<>, EncodingType> transcoder;
|
if (!Transcoder<UTF8<>, EncodingType>().Validate(is, os) || !is.IsValid()) {
|
||||||
if (!transcoder.Validate(is, os) || !is.IsValid()) {
|
|
||||||
parseErrorCode_ = kPointerParseErrorInvalidPercentEncoding;
|
parseErrorCode_ = kPointerParseErrorInvalidPercentEncoding;
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
@ -517,8 +516,7 @@ private:
|
|||||||
// Transcode to UTF8 sequence
|
// Transcode to UTF8 sequence
|
||||||
GenericStringStream<typename ValueType::EncodingType> source(&t->name[j]);
|
GenericStringStream<typename ValueType::EncodingType> source(&t->name[j]);
|
||||||
PercentEncodeStream<OutputStream> target(os);
|
PercentEncodeStream<OutputStream> target(os);
|
||||||
Transcoder<EncodingType, UTF8<> > transcoder;
|
if (!Transcoder<EncodingType, UTF8<> >().Validate(source, target))
|
||||||
if (!transcoder.Validate(source, target))
|
|
||||||
return false;
|
return false;
|
||||||
j += source.Tell() - 1;
|
j += source.Tell() - 1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user