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/configparser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/configparser.cpp') diff --git a/src/configparser.cpp b/src/configparser.cpp index 7e18af0e0..57c303e38 100644 --- a/src/configparser.cpp +++ b/src/configparser.cpp @@ -45,7 +45,7 @@ enum ParseFlags }; // RAII wrapper for FILE* which closes the file when it goes out of scope. -class FileWrapper +class FileWrapper final { private: // Whether this file handle should be closed with pclose. @@ -79,7 +79,7 @@ class FileWrapper } }; -struct Parser +struct Parser final { ParseStack& stack; int flags; -- cgit v1.3.1-10-gc9f91