diff options
author | Noel Grandin <noel@peralex.com> | 2016-02-16 11:26:51 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2016-02-16 10:37:55 +0000 |
commit | ce43d0ae9279edbf1ad108fe0d8325327a038d49 (patch) | |
tree | a0fbf7bbd608d1185005a0de36496c6f3656e798 /stoc/test | |
parent | coverity#1352448 Use of untrusted scalar value (diff) | |
download | core-ce43d0ae9279edbf1ad108fe0d8325327a038d49.tar.gz core-ce43d0ae9279edbf1ad108fe0d8325327a038d49.zip |
use consistent #define checks for the Windows platform
stage 1 of replacing usage of various checks for the windows platform
with the compiler-defined '_WIN32' macro
Change-Id: Iece73abdee530937e0737190b1aa97a46cd3075f
Reviewed-on: https://gerrit.libreoffice.org/22390
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'stoc/test')
-rw-r--r-- | stoc/test/testregistry.cxx | 2 | ||||
-rw-r--r-- | stoc/test/testsmgr.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/stoc/test/testregistry.cxx b/stoc/test/testregistry.cxx index df7e2826b7e7..07e5d099e970 100644 --- a/stoc/test/testregistry.cxx +++ b/stoc/test/testregistry.cxx @@ -91,7 +91,7 @@ OUString getExePath() { OUString exe; OSL_VERIFY( osl_getExecutableFile( &exe.pData ) == osl_Process_E_None); -#if defined(WIN32) || defined(WNT) +#if defined(_WIN32) exe = exe.copy(0, exe.getLength() - 16); #else exe = exe.copy(0, exe.getLength() - 12); diff --git a/stoc/test/testsmgr.cxx b/stoc/test/testsmgr.cxx index 666d16fa5f92..d65b1c2e3a07 100644 --- a/stoc/test/testsmgr.cxx +++ b/stoc/test/testsmgr.cxx @@ -47,7 +47,7 @@ OUString getExePath() OSL_VERIFY( osl_getExecutableFile( &exe.pData) == osl_Process_E_None); -#if defined(WIN32) || defined(WNT) +#if defined(_WIN32) exe = exe.copy(0, exe.getLength() - 16); #else exe = exe.copy(0, exe.getLength() - 12); |