aboutsummaryrefslogtreecommitdiffstats
path: root/src/xline.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2023-06-05 14:31:53 +0100
committerGravatar Sadie Powell2023-06-05 14:40:52 +0100
commit6348a2e4bc4313325405de0e65a33e93de0494ee (patch)
treeb1211593a04a43ad23d83f334a530040c1fa2fe1 /src/xline.cpp
parentMake XLine::Matches const. (diff)
Misc XLine cleanup.
Diffstat (limited to 'src/xline.cpp')
-rw-r--r--src/xline.cpp22
1 files changed, 5 insertions, 17 deletions
diff --git a/src/xline.cpp b/src/xline.cpp
index 58a628fdc..1ddf0606f 100644
--- a/src/xline.cpp
+++ b/src/xline.cpp
@@ -518,23 +518,11 @@ bool XLineManager::InvokeStats(const std::string& type, Stats::Context& context)
XLineManager::XLineManager()
{
- GLineFactory* GFact;
- ELineFactory* EFact;
- KLineFactory* KFact;
- QLineFactory* QFact;
- ZLineFactory* ZFact;
-
- GFact = new GLineFactory;
- EFact = new ELineFactory;
- KFact = new KLineFactory;
- QFact = new QLineFactory;
- ZFact = new ZLineFactory;
-
- RegisterFactory(GFact);
- RegisterFactory(EFact);
- RegisterFactory(KFact);
- RegisterFactory(QFact);
- RegisterFactory(ZFact);
+ RegisterFactory(new ELineFactory());
+ RegisterFactory(new GLineFactory());
+ RegisterFactory(new KLineFactory());
+ RegisterFactory(new QLineFactory());
+ RegisterFactory(new ZLineFactory());
}
XLineManager::~XLineManager()