diff --git a/src/plugins/cppeditor/quickfixes/assigntolocalvariable.cpp b/src/plugins/cppeditor/quickfixes/assigntolocalvariable.cpp index ae63681dc26..c3bc3e85daf 100644 --- a/src/plugins/cppeditor/quickfixes/assigntolocalvariable.cpp +++ b/src/plugins/cppeditor/quickfixes/assigntolocalvariable.cpp @@ -123,8 +123,13 @@ private: //! Assigns the return value of a function call or a new expression to a local variable class AssignToLocalVariable : public CppQuickFixFactory { -#ifdef WITH_TESTS public: + AssignToLocalVariable() + { + setClangdReplacement({20}); + } + +#ifdef WITH_TESTS static QObject *createTest(); #endif