diff options
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); |