mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-10-16 07:23:43 +02:00
Fix MSVC 15.9 (2017) warning C4866
by changing operator[] param type from JSONCPP_STRING to const JSONCPP_STRING& for CharReaderBuilder and StreamWriterBuilder (as it is already in Value). https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/c4866?view=vs-2017
This commit is contained in:

committed by
Christopher Dunn

parent
4abf4ec208
commit
ccd077ffce
@@ -1969,7 +1969,7 @@ bool CharReaderBuilder::validate(Json::Value* invalid) const {
|
||||
}
|
||||
return 0u == inv.size();
|
||||
}
|
||||
Value& CharReaderBuilder::operator[](JSONCPP_STRING key) {
|
||||
Value& CharReaderBuilder::operator[](const JSONCPP_STRING& key) {
|
||||
return settings_[key];
|
||||
}
|
||||
// static
|
||||
|
Reference in New Issue
Block a user