[Libreoffice-commits] core.git: sw/source

Stephan Bergmann sbergman at redhat.com
Tue Dec 22 06:59:15 PST 2015


 sw/source/core/text/EnhancedPDFExportHelper.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 0ac742298f61d24af4ceb26ea99cb3cfef1570b1
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Tue Dec 22 15:58:44 2015 +0100

    loplugin:simplifybool
    
    Change-Id: I0d15e52100e154bb3681e0092ee663ceeef61f9d

diff --git a/sw/source/core/text/EnhancedPDFExportHelper.cxx b/sw/source/core/text/EnhancedPDFExportHelper.cxx
index 00b544b..5ae9240 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;


More information about the Libreoffice-commits mailing list