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 @@ -160,7 +160,7 @@ struct ModifiedVariable
160160 duplicate (const Type& value)
161161 {
162162 // Just copy the value.
163- return { value };
163+ return Type { value };
164164 }
165165
166166 // Peel off nullable modifiers.
@@ -176,7 +176,7 @@ struct ModifiedVariable
176176 if constexpr (isInputType<Type>() && onlyNoneModifiers<Other...>())
177177 {
178178 // Special case duplicating the std::unique_ptr.
179- result = std::make_unique<Type>(*nullableValue);
179+ result = std::make_unique<Type>(Type { *nullableValue } );
180180 }
181181 else
182182 {
Original file line number Diff line number Diff line change @@ -755,7 +755,7 @@ struct ModifiedArgument
755755 duplicate (const Type& value)
756756 {
757757 // Just copy the value.
758- return { value };
758+ return Type { value };
759759 }
760760
761761 // Peel off nullable modifiers.
@@ -771,7 +771,7 @@ struct ModifiedArgument
771771 if constexpr (isInputType<Type>() && onlyNoneModifiers<Other...>())
772772 {
773773 // Special case duplicating the std::unique_ptr.
774- result = std::make_unique<Type>(*nullableValue);
774+ result = std::make_unique<Type>(Type { *nullableValue } );
775775 }
776776 else
777777 {
You can’t perform that action at this time.
0 commit comments