File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -176,7 +176,7 @@ struct Converter<SerializedValue<T>> : private detail::VariantAttorney {
176176 static void toJson (SerializedValue<T> src, JsonVariant dst) {
177177 auto variant = getImpl (dst);
178178 variant.clear ();
179- variant.setRawString (src);
179+ variant.setRawString (detail::adaptString ( src. data (), src. size ()) );
180180 }
181181};
182182
Original file line number Diff line number Diff line change @@ -440,11 +440,11 @@ class VariantImpl {
440440 return true ;
441441 }
442442
443- template <typename T >
444- void setRawString (SerializedValue<T> value) {
443+ template <typename TAdaptedString >
444+ void setRawString (TAdaptedString value) {
445445 if (!data_)
446446 return ;
447- auto dup = resources_->saveString (adaptString ( value. data (), value. size ()) );
447+ auto dup = resources_->saveString (value);
448448 if (dup)
449449 data_->setRawString (dup);
450450 }
You can’t perform that action at this time.
0 commit comments