Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2012-02-21 22:30:21 +0000
committerStijn Buys <ingar@osirion.org>2012-02-21 22:30:21 +0000
commit0392694560d530c14aced7ac21f85b18b676a685 (patch)
tree2410f58516767913b6fdd5f2efcdca9fb1155fc2 /src/properties.cc
parentba14d604adfee8b7596e0bfca81ad2720bbc0cf5 (diff)
Initial support to preserve ini file comments
Diffstat (limited to 'src/properties.cc')
-rw-r--r--src/properties.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/properties.cc b/src/properties.cc
index f5e2159..87633f7 100644
--- a/src/properties.cc
+++ b/src/properties.cc
@@ -18,8 +18,11 @@ Properties::~Properties()
{
}
-void Properties::add_value(const QString &key, const QString &value)
+void Properties::add_value(const QString &key, const QString &value, const QString &comment)
{
+ if (comment.size())
+ properties_values += comment;
+
properties_values += key;
properties_values += '=';
properties_values += value;