diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-03-06 15:35:52 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-03-06 15:35:52 +0100 |
commit | 14368e63ab5d18f6b6c7f2eeb1e816593701827b (patch) | |
tree | 380b6f0b7b51142aa6f18dc352209d6cf125f67e /unotools/source | |
parent | fee627825f2efb228d9c4e81ed007dd8c7066c9b (diff) |
loplugin:simplifybool
Change-Id: Ied05f5d8b09b3bab4bddfe0a189c5039f81b6f18
Diffstat (limited to 'unotools/source')
-rw-r--r-- | unotools/source/misc/mediadescriptor.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/unotools/source/misc/mediadescriptor.cxx b/unotools/source/misc/mediadescriptor.cxx index 5d5dd7ecfff4..c8c2ec98ea91 100644 --- a/unotools/source/misc/mediadescriptor.cxx +++ b/unotools/source/misc/mediadescriptor.cxx @@ -484,9 +484,8 @@ bool MediaDescriptor::addInputStream() /*-----------------------------------------------*/ bool MediaDescriptor::addInputStreamOwnLock() { - const bool bLock = utl::ConfigManager::IsAvoidConfig() - ? false - : officecfg::Office::Common::Misc::UseDocumentSystemFileLocking::get(); + const bool bLock = !utl::ConfigManager::IsAvoidConfig() + && officecfg::Office::Common::Misc::UseDocumentSystemFileLocking::get(); return impl_addInputStream(bLock); } |