mirror of
https://github.com/eledio-devices/thirdparty-ArduinoJson.git
synced 2025-11-01 16:14:05 +01:00
Fix call of overloaded 'String(const char*, int)' is ambiguous
This commit is contained in:
@@ -13,7 +13,8 @@ class Pair {
|
||||
public:
|
||||
Pair(MemoryPool* pool, VariantSlot* slot) {
|
||||
if (slot) {
|
||||
_key = String(slot->key(), !slot->ownsKey());
|
||||
_key = String(slot->key(),
|
||||
slot->ownsKey() ? String::Copied : String::Linked);
|
||||
_value = VariantRef(pool, slot->data());
|
||||
}
|
||||
}
|
||||
@@ -35,7 +36,8 @@ class PairConst {
|
||||
public:
|
||||
PairConst(const VariantSlot* slot) {
|
||||
if (slot) {
|
||||
_key = String(slot->key(), !slot->ownsKey());
|
||||
_key = String(slot->key(),
|
||||
slot->ownsKey() ? String::Copied : String::Linked);
|
||||
_value = VariantConstRef(slot->data());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user