From 421e8c8c793740aaf34feff761716c1c51d8f04e Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Mon, 20 Dec 2021 20:00:03 +0000 Subject: Add the final keyword to all remaining classes that can have it. --- src/xline.cpp | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'src/xline.cpp') diff --git a/src/xline.cpp b/src/xline.cpp index 31133d1bf..312f7be12 100644 --- a/src/xline.cpp +++ b/src/xline.cpp @@ -33,7 +33,8 @@ /** An XLineFactory specialized to generate GLine* pointers */ -class GLineFactory : public XLineFactory +class GLineFactory final + : public XLineFactory { public: GLineFactory() : XLineFactory("G") { } @@ -49,7 +50,8 @@ class GLineFactory : public XLineFactory /** An XLineFactory specialized to generate ELine* pointers */ -class ELineFactory : public XLineFactory +class ELineFactory final + : public XLineFactory { public: ELineFactory() : XLineFactory("E") { } @@ -65,7 +67,8 @@ class ELineFactory : public XLineFactory /** An XLineFactory specialized to generate KLine* pointers */ -class KLineFactory : public XLineFactory +class KLineFactory final + : public XLineFactory { public: KLineFactory() : XLineFactory("K") { } @@ -81,7 +84,8 @@ class KLineFactory : public XLineFactory /** An XLineFactory specialized to generate QLine* pointers */ -class QLineFactory : public XLineFactory +class QLineFactory final + : public XLineFactory { public: QLineFactory() : XLineFactory("Q") { } @@ -96,7 +100,8 @@ class QLineFactory : public XLineFactory /** An XLineFactory specialized to generate ZLine* pointers */ -class ZLineFactory : public XLineFactory +class ZLineFactory final + : public XLineFactory { public: ZLineFactory() : XLineFactory("Z") { } -- cgit v1.3.1-10-gc9f91