QuickOpenDataBase subclasses: mark members as const, only to be read

parent a13c647d
......@@ -71,10 +71,10 @@ public:
}
private:
QAction* m_action;
QAction* const m_action;
///needed because it won't have the "E&xit" ampersand
QString m_display;
const QString m_display;
};
ActionsQuickOpenProvider::ActionsQuickOpenProvider()
......
......@@ -59,9 +59,10 @@ public:
{
return m_provider->icon();
}
private:
QModelIndex m_data;
IDocumentationProvider* m_provider;
const QModelIndex m_data;
IDocumentationProvider* const m_provider;
};
namespace {
......
......@@ -58,9 +58,10 @@ public:
QIcon icon() const override;
KDevelop::Path projectPath() const;
private:
DUChainItem m_item;
bool m_openDefinition;
const DUChainItem m_item;
const bool m_openDefinition;
};
/**
......
......@@ -82,8 +82,9 @@ public:
QString project() const;
KDevelop::Path projectPath() const;
private:
ProjectFile m_file;
const ProjectFile m_file;
};
class BaseFileDataProvider
......
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