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
160
160
duplicate (const Type& value)
161
161
{
162
162
// Just copy the value.
163
- return { value };
163
+ return Type { value };
164
164
}
165
165
166
166
// Peel off nullable modifiers.
@@ -176,7 +176,7 @@ struct ModifiedVariable
176
176
if constexpr (isInputType<Type>() && onlyNoneModifiers<Other...>())
177
177
{
178
178
// Special case duplicating the std::unique_ptr.
179
- result = std::make_unique<Type>(*nullableValue);
179
+ result = std::make_unique<Type>(Type { *nullableValue } );
180
180
}
181
181
else
182
182
{
Original file line number Diff line number Diff line change @@ -755,7 +755,7 @@ struct ModifiedArgument
755
755
duplicate (const Type& value)
756
756
{
757
757
// Just copy the value.
758
- return { value };
758
+ return Type { value };
759
759
}
760
760
761
761
// Peel off nullable modifiers.
@@ -771,7 +771,7 @@ struct ModifiedArgument
771
771
if constexpr (isInputType<Type>() && onlyNoneModifiers<Other...>())
772
772
{
773
773
// Special case duplicating the std::unique_ptr.
774
- result = std::make_unique<Type>(*nullableValue);
774
+ result = std::make_unique<Type>(Type { *nullableValue } );
775
775
}
776
776
else
777
777
{
You can’t perform that action at this time.
0 commit comments