summaryrefslogtreecommitdiff
path: root/sal/osl/unx/profile.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-04-24 09:24:05 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-04-24 11:31:02 +0200
commit63df0796f5ec500f3b6fb34510d4bc79c009e76d (patch)
tree1abacb83b15612c8ef712c89eb3dc15f28bc41c4 /sal/osl/unx/profile.cxx
parent1c8f03b48a02a56bc4eb364d8a4e9bd4715a530a (diff)
clang-tidy readability-simplify-boolean-expr in oox..sal
Change-Id: I1e14e5b15d2dd9e35477f8189cbecf0b443b9381 Reviewed-on: https://gerrit.libreoffice.org/36875 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sal/osl/unx/profile.cxx')
-rw-r--r--sal/osl/unx/profile.cxx10
1 files changed, 1 insertions, 9 deletions
diff --git a/sal/osl/unx/profile.cxx b/sal/osl/unx/profile.cxx
index a979c7b8e71b..c5e5dd77d819 100644
--- a/sal/osl/unx/profile.cxx
+++ b/sal/osl/unx/profile.cxx
@@ -890,15 +890,7 @@ static bool OslProfile_lockFile(const osl_TFile* pFile, osl_TLockMode eMode)
sal_Char* pEnvValue;
pEnvValue = getenv( "STAR_PROFILE_LOCKING_DISABLED" );
- if ( pEnvValue == nullptr )
- {
- bLockingDisabled = false;
-
- }
- else
- {
- bLockingDisabled = true;
- }
+ bLockingDisabled = pEnvValue != nullptr;
bIsInitialized = true;
}