summaryrefslogtreecommitdiff
path: root/registry/source
diff options
context:
space:
mode:
Diffstat (limited to 'registry/source')
-rw-r--r--registry/source/regimpl.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/registry/source/regimpl.cxx b/registry/source/regimpl.cxx
index 21a15d4c9f69..ab517844801b 100644
--- a/registry/source/regimpl.cxx
+++ b/registry/source/regimpl.cxx
@@ -839,7 +839,7 @@ RegError ORegistry::deleteSubkeysAndValues(ORegKey* pKey)
if (sFullPath.getLength() > 1)
sFullPath += ROOT;
- if (((OStoreFile&)pKey->getStoreFile()).remove(sFullPath, keyName))
+ if (const_cast<OStoreFile&>(pKey->getStoreFile()).remove(sFullPath, keyName))
{
return RegError::DELETE_VALUE_FAILED;
}