diff options
author | Philipp Hofer <philipp.hofer@protonmail.com> | 2020-11-12 13:18:01 +0100 |
---|---|---|
committer | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2020-11-19 14:47:21 +0100 |
commit | 5ce88c782e44dae6de8df2933b7c036f0dd48172 (patch) | |
tree | 437c98ea9a09a79bc2611051cc870b78478f9a9a /stoc/test | |
parent | c19cc6ad7676a987475fc718488007af3672a025 (diff) |
tdf#123936 Formatting files in module stoc with clang-format
Change-Id: I401279561e2481a8af7ed600d4133812b08386ba
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105712
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Diffstat (limited to 'stoc/test')
-rw-r--r-- | stoc/test/mergekeys_.cxx | 1 | ||||
-rw-r--r-- | stoc/test/testsmgr.cxx | 18 |
2 files changed, 8 insertions, 11 deletions
diff --git a/stoc/test/mergekeys_.cxx b/stoc/test/mergekeys_.cxx index 02bd486fb98a..079e12670abe 100644 --- a/stoc/test/mergekeys_.cxx +++ b/stoc/test/mergekeys_.cxx @@ -17,7 +17,6 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ - #include "../source/implementationregistration/mergekeys.cxx" /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/stoc/test/testsmgr.cxx b/stoc/test/testsmgr.cxx index d65b1c2e3a07..a8243386e27d 100644 --- a/stoc/test/testsmgr.cxx +++ b/stoc/test/testsmgr.cxx @@ -38,14 +38,13 @@ extern "C" void SAL_CALL test_ServiceManager(); #define TRUE 1 #endif - OString userRegEnv("STAR_USER_REGISTRY="); OUString getExePath() { - OUString exe; + OUString exe; - OSL_VERIFY( osl_getExecutableFile( &exe.pData) == osl_Process_E_None); + OSL_VERIFY(osl_getExecutableFile(&exe.pData) == osl_Process_E_None); #if defined(_WIN32) exe = exe.copy(0, exe.getLength() - 16); @@ -57,13 +56,13 @@ OUString getExePath() void setStarUserRegistry() { - Registry *myRegistry = new Registry(); + Registry* myRegistry = new Registry(); RegistryKey rootKey, rKey, rKey2; OUString userReg = getExePath(); userReg += "user.rdb"; - if(myRegistry->open(userReg, RegAccessMode::READWRITE)) + if (myRegistry->open(userReg, RegAccessMode::READWRITE)) { OSL_VERIFY(!myRegistry->create(userReg)); } @@ -72,18 +71,17 @@ void setStarUserRegistry() delete myRegistry; userRegEnv += OUStringToOString(userReg, RTL_TEXTENCODING_ASCII_US); - putenv((char *)userRegEnv.getStr()); + putenv((char*)userRegEnv.getStr()); } - SAL_IMPLEMENT_MAIN() { - printf( "ServiceManagerTest : \r"); + printf("ServiceManagerTest : \r"); setStarUserRegistry(); - fflush( stdout ); + fflush(stdout); test_ServiceManager(); - printf( "ServiceManagerTest : OK\n" ); + printf("ServiceManagerTest : OK\n"); return 0; } |