summaryrefslogtreecommitdiff
path: root/registry/source/regimpl.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'registry/source/regimpl.cxx')
-rw-r--r--registry/source/regimpl.cxx30
1 files changed, 15 insertions, 15 deletions
diff --git a/registry/source/regimpl.cxx b/registry/source/regimpl.cxx
index 75e64bc940b8..0655a4642c43 100644
--- a/registry/source/regimpl.cxx
+++ b/registry/source/regimpl.cxx
@@ -455,21 +455,21 @@ RegError ORegistry::initRegistry(const OUString& regName, RegAccessMode accessMo
{
RegError eRet = RegError::INVALID_REGISTRY;
OStoreFile rRegFile;
- storeAccessMode sAccessMode = store_AccessReadWrite;
+ storeAccessMode sAccessMode = storeAccessMode::ReadWrite;
storeError errCode;
if (bCreate)
{
- sAccessMode = store_AccessCreate;
+ sAccessMode = storeAccessMode::Create;
}
else if (accessMode & RegAccessMode::READONLY)
{
- sAccessMode = store_AccessReadOnly;
+ sAccessMode = storeAccessMode::ReadOnly;
m_readOnly = true;
}
if (regName.isEmpty() &&
- store_AccessCreate == sAccessMode)
+ storeAccessMode::Create == sAccessMode)
{
errCode = rRegFile.createInMemory();
}
@@ -670,7 +670,7 @@ RegError ORegistry::createKey(RegKeyHandle hKey, const OUString& keyName,
token = sFullKeyName.getToken( 0, '/', nIndex );
if (!token.isEmpty())
{
- if (rStoreDir.create(pKey->getStoreFile(), sFullPath.getStr(), token, store_AccessCreate))
+ if (rStoreDir.create(pKey->getStoreFile(), sFullPath.getStr(), token, storeAccessMode::Create))
{
return RegError::CREATE_KEY_FAILED;
}
@@ -716,7 +716,7 @@ RegError ORegistry::openKey(RegKeyHandle hKey, const OUString& keyName,
sal_Int32 n = path.lastIndexOf('/') + 1;
switch (OStoreDirectory().create(
pKey->getStoreFile(), path.copy(0, n), path.copy(n),
- isReadOnly() ? store_AccessReadOnly : store_AccessReadWrite))
+ isReadOnly() ? storeAccessMode::ReadOnly : storeAccessMode::ReadWrite))
{
case store_E_NotExists:
return RegError::KEY_NOT_EXISTS;
@@ -953,13 +953,13 @@ RegError ORegistry::loadAndSaveValue(ORegKey* pTargetKey,
RegValueType valueType;
sal_uInt32 valueSize;
sal_uInt32 nSize;
- storeAccessMode sourceAccess = store_AccessReadWrite;
+ storeAccessMode sourceAccess = storeAccessMode::ReadWrite;
OUString sTargetPath(pTargetKey->getName());
OUString sSourcePath(pSourceKey->getName());
if (pSourceKey->isReadOnly())
{
- sourceAccess = store_AccessReadOnly;
+ sourceAccess = storeAccessMode::ReadOnly;
}
if (nCut)
@@ -1019,7 +1019,7 @@ RegError ORegistry::loadAndSaveValue(ORegKey* pTargetKey,
OStoreFile rTargetFile(pTargetKey->getStoreFile());
- if (!rValue.create(rTargetFile, sTargetPath, valueName, store_AccessReadWrite))
+ if (!rValue.create(rTargetFile, sTargetPath, valueName, storeAccessMode::ReadWrite))
{
if (valueType == RegValueType::BINARY)
{
@@ -1043,7 +1043,7 @@ RegError ORegistry::loadAndSaveValue(ORegKey* pTargetKey,
}
// write
- if (rValue.create(rTargetFile, sTargetPath, valueName, store_AccessCreate))
+ if (rValue.create(rTargetFile, sTargetPath, valueName, storeAccessMode::Create))
{
rtl_freeMemory(pBuffer);
return RegError::INVALID_VALUE;
@@ -1292,7 +1292,7 @@ RegError ORegistry::loadAndSaveKeys(ORegKey* pTargetKey,
sFullKeyName += keyName;
OStoreDirectory rStoreDir;
- if (rStoreDir.create(pTargetKey->getStoreFile(), sFullPath, keyName, store_AccessCreate))
+ if (rStoreDir.create(pTargetKey->getStoreFile(), sFullPath, keyName, storeAccessMode::Create))
{
return RegError::CREATE_KEY_FAILED;
}
@@ -1396,11 +1396,11 @@ RegError ORegistry::dumpValue(const OUString& sPath, const OUString& sName, sal_
RegValueType valueType;
OUString sFullPath(sPath);
OString sIndent;
- storeAccessMode accessMode = store_AccessReadWrite;
+ storeAccessMode accessMode = storeAccessMode::ReadWrite;
if (isReadOnly())
{
- accessMode = store_AccessReadOnly;
+ accessMode = storeAccessMode::ReadOnly;
}
for (int i= 0; i < nSpc; i++) sIndent += " ";
@@ -1631,12 +1631,12 @@ RegError ORegistry::dumpKey(const OUString& sPath, const OUString& sName, sal_In
OStoreDirectory rStoreDir;
OUString sFullPath(sPath);
OString sIndent;
- storeAccessMode accessMode = store_AccessReadWrite;
+ storeAccessMode accessMode = storeAccessMode::ReadWrite;
RegError _ret = RegError::NO_ERROR;
if (isReadOnly())
{
- accessMode = store_AccessReadOnly;
+ accessMode = storeAccessMode::ReadOnly;
}
for (int i= 0; i < nSpace; i++) sIndent += " ";