From 98e4ddfb21d285c8b675788c155bb204822fbd4a Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 6 Feb 2020 11:25:42 +0000 Subject: Use C++11 inline initialisation for class members. --- src/configparser.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/configparser.cpp') diff --git a/src/configparser.cpp b/src/configparser.cpp index fc4be52ff..2f84b971a 100644 --- a/src/configparser.cpp +++ b/src/configparser.cpp @@ -43,15 +43,13 @@ struct FilePosition std::string name; // The line of the file that this position points to. - unsigned int line; + unsigned int line = 1; // The column of the file that this position points to. - unsigned int column; + unsigned int column = 1; FilePosition(const std::string& Name) : name(Name) - , line(1) - , column(1) { } -- cgit v1.3.1-10-gc9f91