From: Milian Wolff Date: Mon, 22 Aug 2016 10:47:26 +0000 Subject: Fix compile X-Git-Url: http://quickgit.kde.org/?p=kdevelop.git&a=commitdiff&h=f4b5b7538be64328cf8462ee438caaac6c0907aa --- Fix compile BUG: 367659 --- --- a/languages/cpp/cppduchain/cppducontext.cpp +++ b/languages/cpp/cppduchain/cppducontext.cpp @@ -39,7 +39,8 @@ REGISTER_DUCHAIN_ITEM_WITH_DATA(CppNormalDUContext, DUContextData); template<> -QWidget* CppDUContext::createNavigationWidget( Declaration* decl, TopDUContext* topContext, const QString& htmlPrefix, const QString& htmlSuffix ) const { +QWidget* CppDUContext::createNavigationWidget(Declaration* decl, TopDUContext* topContext, const QString& htmlPrefix, const QString& htmlSuffix, + AbstractNavigationWidget::DisplayHints /*hints*/) const { if( decl == 0 ) { Path path( url().str() ); IncludeItem i; @@ -55,7 +56,8 @@ } template<> -QWidget* CppDUContext::createNavigationWidget(Declaration* decl, TopDUContext* topContext, const QString& htmlPrefix, const QString& htmlSuffix) const { +QWidget* CppDUContext::createNavigationWidget(Declaration* decl, TopDUContext* topContext, const QString& htmlPrefix, const QString& htmlSuffix, + AbstractNavigationWidget::DisplayHints /*hints*/) const { if( decl == 0 ) { if( owner() ) return new NavigationWidget( DeclarationPointer(owner()), TopDUContextPointer(topContext ? topContext : this->topContext()), htmlPrefix, htmlSuffix ); --- a/languages/cpp/cppduchain/cppducontext.h +++ b/languages/cpp/cppduchain/cppducontext.h @@ -652,7 +652,8 @@ return instantiateDeclarationAndContext( surroundingContext, source, this, info, 0, 0 ); } - virtual QWidget* createNavigationWidget(Declaration* decl, TopDUContext* topContext, const QString& htmlPrefix, const QString& htmlSuffix) const override; + virtual QWidget* createNavigationWidget(Declaration* decl, TopDUContext* topContext, const QString& htmlPrefix, const QString& htmlSuffix, + KDevelop::AbstractNavigationWidget::DisplayHints hints = KDevelop::AbstractNavigationWidget::NoHints) const override; enum { Identity = BaseContext::Identity + 50