Commit f4185277 authored by Laurent Montel's avatar Laurent Montel 😁

Const'ify

parent b93ec7aa
......@@ -141,19 +141,19 @@ class KInfoCenter : public KXmlGuiWindow
void clearSearchLine();
KcmContainer *m_contain;
QSplitter *m_splitter;
KcmContainer *m_contain = nullptr;
QSplitter *m_splitter = nullptr;
QAction *m_aboutKcm;
QAction *m_searchAction;
QAction *m_moduleHelpAction;
KActionMenu *m_helpAction;
QAction *m_aboutKcm = nullptr;
QAction *m_searchAction = nullptr;
QAction *m_moduleHelpAction = nullptr;
KActionMenu *m_helpAction = nullptr;
QWidget *m_cWidget;
KLineEdit *m_searchText;
QWidget *m_cWidget = nullptr;
KLineEdit *m_searchText = nullptr;
SidePanel *m_sideMenu;
ToolTipManager *m_toolTips;
SidePanel *m_sideMenu = nullptr;
ToolTipManager *m_toolTips = nullptr;
};
#endif //INFOCENTER
......@@ -60,7 +60,7 @@ KCModuleInfo KcmCategoryItem::kcm() const
return KCModuleInfo();
}
int KcmCategoryItem::weight()
int KcmCategoryItem::weight() const
{
return (category().count() + 1000);
}
......
......@@ -72,7 +72,7 @@ class KcmCategoryItem : public KcmTreeItem
/**
* Get tree items KCM's weight
*/
int weight() Q_DECL_OVERRIDE;
int weight() const Q_DECL_OVERRIDE;
/**
* Get icon tied to KCM
......
......@@ -120,7 +120,7 @@ KCModuleInfo KcmTreeItem::kcm() const
return *m_moduleInfo;
}
int KcmTreeItem::weight()
int KcmTreeItem::weight() const
{
return m_moduleInfo->weight();
}
......
......@@ -130,7 +130,7 @@ class KcmTreeItem
/**
* Get tree items KCM's weight
*/
virtual int weight();
virtual int weight() const;
/**
* Get icon tied to KCM
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment