diff options
author | Noel Grandin <noel@peralex.com> | 2015-04-08 12:18:03 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-04-09 08:41:11 +0200 |
commit | 1bdbe0b475464402716c1c304d28376f1c37d820 (patch) | |
tree | 4ed184ad2b1ce13e3214d15eaed180c7e38bc073 /registry/tools | |
parent | some cleanup in treelistbox (diff) | |
download | core-1bdbe0b475464402716c1c304d28376f1c37d820.tar.gz core-1bdbe0b475464402716c1c304d28376f1c37d820.zip |
convert REG_ constants to scoped enum
Change-Id: I11d92218c5e0678d497f8964723033e2bd8b3300
Diffstat (limited to 'registry/tools')
-rw-r--r-- | registry/tools/regcompare.cxx | 4 | ||||
-rw-r--r-- | registry/tools/regmerge.cxx | 2 | ||||
-rw-r--r-- | registry/tools/regview.cxx | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/registry/tools/regcompare.cxx b/registry/tools/regcompare.cxx index 032762d228ea..583b3f736c92 100644 --- a/registry/tools/regcompare.cxx +++ b/registry/tools/regcompare.cxx @@ -1975,13 +1975,13 @@ int _cdecl main( int argc, char * argv[] ) OUString regName2( convertToFileUrl(options.getRegName2().c_str(), options.getRegName2().size()) ); Registry reg1, reg2; - if ( reg1.open(regName1, REG_READONLY) ) + if ( reg1.open(regName1, RegAccessMode::READONLY) ) { fprintf(stdout, "%s: open registry \"%s\" failed\n", options.getProgramName().c_str(), options.getRegName1().c_str()); return 2; } - if ( reg2.open(regName2, REG_READONLY) ) + if ( reg2.open(regName2, RegAccessMode::READONLY) ) { fprintf(stdout, "%s: open registry \"%s\" failed\n", options.getProgramName().c_str(), options.getRegName2().c_str()); diff --git a/registry/tools/regmerge.cxx b/registry/tools/regmerge.cxx index 0a712cae987b..7a170d72f925 100644 --- a/registry/tools/regmerge.cxx +++ b/registry/tools/regmerge.cxx @@ -109,7 +109,7 @@ int __cdecl main( int argc, char * argv[] ) Registry reg; OUString regName( convertToFileUrl(args[0].c_str(), args[0].size()) ); - if (reg.open(regName, REG_READWRITE) != REG_NO_ERROR) + if (reg.open(regName, RegAccessMode::READWRITE) != REG_NO_ERROR) { if (reg.create(regName) != REG_NO_ERROR) { diff --git a/registry/tools/regview.cxx b/registry/tools/regview.cxx index 16b1b17a5060..6930a8fcc073 100644 --- a/registry/tools/regview.cxx +++ b/registry/tools/regview.cxx @@ -44,7 +44,7 @@ int __cdecl main( int argc, char * argv[] ) } OUString regName( convertToFileUrl(argv[1], strlen(argv[1])) ); - if (reg_openRegistry(regName.pData, &hReg, REG_READONLY)) + if (reg_openRegistry(regName.pData, &hReg, RegAccessMode::READONLY)) { fprintf(stderr, "open registry \"%s\" failed\n", argv[1]); exit(1); |