diff options
| author | 2023-06-05 14:31:53 +0100 | |
|---|---|---|
| committer | 2023-06-05 14:40:52 +0100 | |
| commit | 6348a2e4bc4313325405de0e65a33e93de0494ee (patch) | |
| tree | b1211593a04a43ad23d83f334a530040c1fa2fe1 /src/xline.cpp | |
| parent | Make XLine::Matches const. (diff) | |
Misc XLine cleanup.
Diffstat (limited to 'src/xline.cpp')
| -rw-r--r-- | src/xline.cpp | 22 |
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() |
