fix writing the same key to the config file multiple time.

This commit is contained in:
aaron0x
2015-09-16 15:48:31 +08:00
parent 5bde0dae76
commit 8629b897a4
3 changed files with 45 additions and 32 deletions

View File

@@ -108,7 +108,7 @@ private:
void saveKeyValue(std::istream& istr);
bool isNewLine(int c) const;
bool isKeyValueSeparator(int c) const;
void outputKeyValue(std::ostream& ostr, const std::string& key, const std::string& value) const;
std::string composeOneLine(const std::string& key, const std::string& value) const;
bool _preserveComment;
FileContent _fileContent;