From 6348a2e4bc4313325405de0e65a33e93de0494ee Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Mon, 5 Jun 2023 14:31:53 +0100 Subject: Misc XLine cleanup. --- src/xline.cpp | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) (limited to 'src/xline.cpp') 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() -- cgit v1.3.1-10-gc9f91