aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/mercurial/mercurialplugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/mercurial/mercurialplugin.cpp')
-rw-r--r--src/plugins/mercurial/mercurialplugin.cpp48
1 files changed, 18 insertions, 30 deletions
diff --git a/src/plugins/mercurial/mercurialplugin.cpp b/src/plugins/mercurial/mercurialplugin.cpp
index 081a7a5e41c..bd691d47e4c 100644
--- a/src/plugins/mercurial/mercurialplugin.cpp
+++ b/src/plugins/mercurial/mercurialplugin.cpp
@@ -67,27 +67,6 @@ protected:
}
};
-const VcsBaseEditorParameters logEditorParameters {
- LogOutput,
- Constants::FILELOG_ID,
- Constants::FILELOG_DISPLAY_NAME,
- Constants::LOGAPP
-};
-
-const VcsBaseEditorParameters annotateEditorParameters {
- AnnotateOutput,
- Constants::ANNOTATELOG_ID,
- Constants::ANNOTATELOG_DISPLAY_NAME,
- Constants::ANNOTATEAPP
-};
-
-const VcsBaseEditorParameters diffEditorParameters {
- DiffOutput,
- Constants::DIFFLOG_ID,
- Constants::DIFFLOG_DISPLAY_NAME,
- Constants::DIFFAPP
-};
-
class MercurialPluginPrivate final : public VcsBase::VersionControlBase
{
public:
@@ -180,23 +159,32 @@ private:
FilePath m_submitRepository;
public:
- VcsEditorFactory logEditorFactory {
- &logEditorParameters,
+ VcsEditorFactory logEditorFactory {{
+ LogOutput,
+ Constants::FILELOG_ID,
+ Constants::FILELOG_DISPLAY_NAME,
+ Constants::LOGAPP,
[this] { return new MercurialEditorWidget; },
std::bind(&MercurialPluginPrivate::vcsDescribe, this, _1, _2)
- };
+ }};
- VcsEditorFactory annotateEditorFactory {
- &annotateEditorParameters,
+ VcsEditorFactory annotateEditorFactory {{
+ AnnotateOutput,
+ Constants::ANNOTATELOG_ID,
+ Constants::ANNOTATELOG_DISPLAY_NAME,
+ Constants::ANNOTATEAPP,
[this] { return new MercurialEditorWidget; },
std::bind(&MercurialPluginPrivate::vcsDescribe, this, _1, _2)
- };
+ }};
- VcsEditorFactory diffEditorFactory {
- &diffEditorParameters,
+ VcsEditorFactory diffEditorFactory {{
+ DiffOutput,
+ Constants::DIFFLOG_ID,
+ Constants::DIFFLOG_DISPLAY_NAME,
+ Constants::DIFFAPP,
[this] { return new MercurialEditorWidget; },
std::bind(&MercurialPluginPrivate::vcsDescribe, this, _1, _2)
- };
+ }};
};
static MercurialPluginPrivate *dd = nullptr;