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 @@ -424,11 +424,11 @@ class VariantImpl {
424424 return true ;
425425 }
426426
427- template <typename T >
428- void setRawString (SerializedValue<T> value) {
427+ template <typename TAdaptedString >
428+ void setRawString (TAdaptedString value) {
429429 if (!data_)
430430 return ;
431- auto dup = resources_->saveString (adaptString ( value. data (), value. size ()) );
431+ auto dup = resources_->saveString (value);
432432 if (dup)
433433 data_->setRawString (dup);
434434 }
You can’t perform that action at this time.
0 commit comments