summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-12-22 15:58:44 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-12-22 15:58:44 +0100
commit0ac742298f61d24af4ceb26ea99cb3cfef1570b1 (patch)
treec4dd8a278627b603781d81c92a920f9f012ed9ee /sw
parent7526f6c6f973d546e2887ff9d794e7214f261889 (diff)
loplugin:simplifybool
Change-Id: I0d15e52100e154bb3681e0092ee663ceeef61f9d
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/text/EnhancedPDFExportHelper.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/text/EnhancedPDFExportHelper.cxx b/sw/source/core/text/EnhancedPDFExportHelper.cxx
index 00b544b84af4..5ae9240532ad 100644
--- a/sw/source/core/text/EnhancedPDFExportHelper.cxx
+++ b/sw/source/core/text/EnhancedPDFExportHelper.cxx
@@ -1748,7 +1748,7 @@ void SwEnhancedPDFExportHelper::EnhancedPDFExport()
static_cast<const SwPageFrame*>( mrSh.GetLayout()->Lower() );
OUString aURL( static_cast<const SwFormatURL*>(pItem)->GetURL() );
- const bool bIntern = !aURL.isEmpty() ? '#' == aURL[0] : false;
+ const bool bIntern = !aURL.isEmpty() && '#' == aURL[0];
// Create the destination for internal links:
sal_Int32 nDestId = -1;