summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/Registry.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/kwsys/Registry.cxx')
-rw-r--r--Source/kwsys/Registry.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/kwsys/Registry.cxx b/Source/kwsys/Registry.cxx
index 245e3ef..a15a12a 100644
--- a/Source/kwsys/Registry.cxx
+++ b/Source/kwsys/Registry.cxx
@@ -525,7 +525,7 @@ bool RegistryHelper::Close()
it != this->EntriesMap.end();
++ it )
{
- *ofs << it->first.c_str() << " = " << it->second.c_str()<< kwsys_ios::endl;
+ *ofs << it->first.c_str() << " = " << this->EncodeValue(it->second.c_str()).c_str() << kwsys_ios::endl;
}
}
this->EntriesMap.erase(
@@ -660,7 +660,7 @@ bool RegistryHelper::SetValue(const char *skey, const char *value)
{
return 0;
}
- this->EntriesMap[key] = this->EncodeValue(value);
+ this->EntriesMap[key] = value;
return 1;
}
return false;
@@ -744,7 +744,7 @@ kwsys_stl::string RegistryHelper::EncodeKey(const char* str)
{
switch ( *str )
{
- case '%': case '=': case '\n': case '\r': case '\t': case ' ':
+ case '%': case '=': case '\n': case '\r': case '\t':
char buffer[4];
sprintf(buffer, "%%%02X", *str);
ostr << buffer;