Skip to content

Commit fa0a515

Browse files
committed
fixed for linting
1 parent 97b1995 commit fa0a515

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

ini/ini.h

Lines changed: 6 additions & 4 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() {};
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() {};
597597
/**
598598
* @brief Write the contents of an INI file to a new file
599599
* @param filepath The path of the output file
@@ -602,13 +602,15 @@ class INIWriter {
602602
* @throws std::runtime_error if the output file already exists or cannot be
603603
* opened
604604
*/
605-
inline static void write(const std::string& filepath, const INIReader& reader,
605+
inline static void write(const std::string& filepath,
606+
const INIReader& reader,
606607
const bool& overwrite = false) {
607608
if (overwrite) {
608609
std::remove(filepath.c_str());
609610
} else {
610611
if (struct stat buf; stat(filepath.c_str(), &buf) == 0) {
611-
throw std::runtime_error("file: " + filepath + " already exists.");
612+
throw std::runtime_error("file: " + filepath +
613+
" already exists.");
612614
}
613615
}
614616
std::ofstream out;

0 commit comments

Comments
 (0)