diff --git a/plugins/clang/codegen/adaptsignatureaction.h b/plugins/clang/codegen/adaptsignatureaction.h index 1d2d386801..725949fb36 100644 --- a/plugins/clang/codegen/adaptsignatureaction.h +++ b/plugins/clang/codegen/adaptsignatureaction.h @@ -1,68 +1,70 @@ /* Copyright 2009 David Nolden Copyright 2014 Kevin Funk This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License version 2 as published by the Free Software Foundation. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef ADAPTSIGNATUREACTION_H #define ADAPTSIGNATUREACTION_H #include #include #include namespace KDevelop { class RenameAction; } using ParameterItem = QPair; struct Signature { - Signature(){}; + Signature() + : isConst(false) + {} QVector parameters; QList defaultParams; KDevelop::IndexedType returnType; bool isConst; }; class AdaptSignatureAction : public KDevelop::IAssistantAction { Q_OBJECT public: AdaptSignatureAction(const KDevelop::DeclarationId& definitionId, const KDevelop::ReferencedTopDUContext& definitionContext, const Signature& oldSignature, const Signature& newSignature, bool editingDefinition, const QList& renameActions); ~AdaptSignatureAction() override; QString description() const override; QString toolTip() const override; void execute() override; private: KDevelop::DeclarationId m_otherSideId; KDevelop::ReferencedTopDUContext m_otherSideTopContext; Signature m_oldSignature; Signature m_newSignature; bool m_editingDefinition; const QList m_renameActions; }; #endif // ADAPTSIGNATUREACTION_H