summaryrefslogtreecommitdiff
path: root/stoc
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-04-08 12:18:03 +0200
committerNoel Grandin <noel@peralex.com>2015-04-09 08:41:11 +0200
commit1bdbe0b475464402716c1c304d28376f1c37d820 (patch)
tree4ed184ad2b1ce13e3214d15eaed180c7e38bc073 /stoc
parent1b0c1943788f6083b27a1e5a4d6d76373f08459b (diff)
convert REG_ constants to scoped enum
Change-Id: I11d92218c5e0678d497f8964723033e2bd8b3300
Diffstat (limited to 'stoc')
-rw-r--r--stoc/source/simpleregistry/simpleregistry.cxx2
-rw-r--r--stoc/test/testregistry.cxx4
-rw-r--r--stoc/test/testsmgr.cxx2
3 files changed, 4 insertions, 4 deletions
diff --git a/stoc/source/simpleregistry/simpleregistry.cxx b/stoc/source/simpleregistry/simpleregistry.cxx
index 12faa50b1838..122cee8410e0 100644
--- a/stoc/source/simpleregistry/simpleregistry.cxx
+++ b/stoc/source/simpleregistry/simpleregistry.cxx
@@ -1018,7 +1018,7 @@ void SimpleRegistry::open(
osl::MutexGuard guard(mutex_);
RegError err = (rURL.isEmpty() && bCreate)
? REG_REGISTRY_NOT_EXISTS
- : registry_.open(rURL, bReadOnly ? REG_READONLY : REG_READWRITE);
+ : registry_.open(rURL, bReadOnly ? RegAccessMode::READONLY : RegAccessMode::READWRITE);
if (err == REG_REGISTRY_NOT_EXISTS && bCreate) {
err = registry_.create(rURL);
}
diff --git a/stoc/test/testregistry.cxx b/stoc/test/testregistry.cxx
index 763619ae33a4..df7e2826b7e7 100644
--- a/stoc/test/testregistry.cxx
+++ b/stoc/test/testregistry.cxx
@@ -107,7 +107,7 @@ RegistryKey rootKey, rKey, rKey2;
OUString userReg = getExePath();
userReg += "user.rdb";
-if(myRegistry->open(userReg, REG_READWRITE))
+if(myRegistry->open(userReg, RegAccessMode::READWRITE))
{
OSL_VERIFY(!myRegistry->create(userReg));
}
@@ -128,7 +128,7 @@ void setLinkInDefaultRegistry(const OUString& linkName, const OUString& linkTarg
OUString appReg = getExePath();
appReg += "stoctest.rdb";
- OSL_VERIFY(!myRegistry->open(appReg, REG_READWRITE));
+ OSL_VERIFY(!myRegistry->open(appReg, RegAccessMode::READWRITE));
OSL_VERIFY(!myRegistry->openRootKey(rootKey));
OSL_VERIFY(!rootKey.createLink(linkName, linkTarget));
diff --git a/stoc/test/testsmgr.cxx b/stoc/test/testsmgr.cxx
index a6097e04491b..666d16fa5f92 100644
--- a/stoc/test/testsmgr.cxx
+++ b/stoc/test/testsmgr.cxx
@@ -63,7 +63,7 @@ void setStarUserRegistry()
OUString userReg = getExePath();
userReg += "user.rdb";
- if(myRegistry->open(userReg, REG_READWRITE))
+ if(myRegistry->open(userReg, RegAccessMode::READWRITE))
{
OSL_VERIFY(!myRegistry->create(userReg));
}