sw/source/core/text/EnhancedPDFExportHelper.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 0ac742298f61d24af4ceb26ea99cb3cfef1570b1 Author: Stephan Bergmann <sberg...@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; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits