diff --git a/src/plugins/cppeditor/cppquickfixes.cpp b/src/plugins/cppeditor/cppquickfixes.cpp index c14fe66255c..b63d8f115f9 100644 --- a/src/plugins/cppeditor/cppquickfixes.cpp +++ b/src/plugins/cppeditor/cppquickfixes.cpp @@ -3853,7 +3853,7 @@ void GetterSetterRefactoringHelper::performGeneration(ExistingGetterSetterData d FullySpecifiedType memberVariableType = data.declarationSymbol->type(); memberVariableType.setConst(false); - const bool isMemberVariableStatic = memberVariableType.isStatic(); + const bool isMemberVariableStatic = data.declarationSymbol->isStatic(); memberVariableType.setStatic(false); Overview overview = CppCodeStyleSettings::currentProjectCodeStyleOverview(); overview.showTemplateParameters = false;