Skip to content

Commit 3b69537

Browse files
committed
refactor: use default constructor for INIReader and INIWriter classes
1 parent cba3a85 commit 3b69537

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.clang-format

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,6 @@ Language: Cpp
55
# Force pointers to the type for C++.
66
DerivePointerAlignment: false
77
PointerAlignment: Left
8+
SpaceInEmptyBraces: Never
9+
AllowShortFunctionsOnASingleLine: Empty
10+
SpaceBeforeCpp11BracedList: false

ini/ini.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ inline int ini_parse(const char* filename, ini_handler handler, void* user) {
200200
class INIReader {
201201
public:
202202
// Empty Constructor
203-
INIReader() {};
203+
INIReader() = default;
204204

205205
// Construct INIReader and parse given filename. See ini.h for more info
206206
// about the parsing.
@@ -593,7 +593,7 @@ inline int INIReader::ValueHandler(void* user, const char* section,
593593

594594
class INIWriter {
595595
public:
596-
INIWriter() {};
596+
INIWriter() = default;
597597
/**
598598
* @brief Write the contents of an INI file to a new file
599599
* @param filepath The path of the output file

0 commit comments

Comments
 (0)