Skip to content

Commit

Permalink
[#2] Updated INI::setBoolean
Browse files Browse the repository at this point in the history
Signed-off-by: Clovis Durand <cd.clovel19@gmail.com>
  • Loading branch information
Clovel committed Mar 4, 2020
1 parent dc13b98 commit 8de6012
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generator/src/INI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ int INI::setString(const std::string &pKey, const std::string &pValue, const std
}

int INI::setBoolean(const std::string &pKey, const bool &pValue, const std::string &pSection) {
std::string lVal = std::to_string(pValue);
std::string lVal = pValue ? "true" : "false";

/* Check if the section exists */
if(mSections.end() != mSections.find(pSection)) {
Expand Down

0 comments on commit 8de6012

Please sign in to comment.