summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-10-23 18:04:15 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-10-23 18:04:31 +0200
commit232a98b1aa771d557385aaac75df67240fa365e2 (patch)
tree9b8ac7e8984b07369eaff99ca074f29821f46005 /vcl/source
parent4eb70290210022860294644d67ba50d55806621c (diff)
nSetGoToRMode wants to be bool
Change-Id: Ib174a3809dd5433c29efbe08a2c4b9f9b6eda804
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/gdi/pdfwriter_impl.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx
index e9ab3b6d57ba..fcd04b44515a 100644
--- a/vcl/source/gdi/pdfwriter_impl.cxx
+++ b/vcl/source/gdi/pdfwriter_impl.cxx
@@ -4497,7 +4497,7 @@ we check in the following sequence:
// extract target file type
INetURLObject aDocumentURL( m_aContext.BaseURL );
INetURLObject aTargetURL( rLink.m_aURL );
- sal_Int32 nSetGoToRMode = 0;
+ bool bSetGoToRMode = false;
bool bTargetHasPDFExtension = false;
INetProtocol eTargetProtocol = aTargetURL.GetProtocol();
bool bIsUNCPath = false;
@@ -4554,7 +4554,7 @@ we check in the following sequence:
//check if extension is pdf, see if GoToR should be forced
bTargetHasPDFExtension = aTargetURL.GetFileExtension().equalsIgnoreAsciiCase( "pdf" );
if( m_aContext.ForcePDFAction && bTargetHasPDFExtension )
- nSetGoToRMode++;
+ bSetGoToRMode = true;
}
//prepare the URL, if relative or not
INetProtocol eBaseProtocol = aDocumentURL.GetProtocol();
@@ -4576,7 +4576,7 @@ we check in the following sequence:
bSetRelative = true;
OUString aFragment = aTargetURL.GetMark( INetURLObject::NO_DECODE /*DECODE_WITH_CHARSET*/ ); //fragment as is,
- if( nSetGoToRMode == 0 )
+ if( !bSetGoToRMode )
{
switch( m_aContext.DefaultLinkAction )
{
@@ -4608,7 +4608,7 @@ we check in the following sequence:
}
//fragment are encoded in the same way as in the named destination processing
- if( nSetGoToRMode )
+ if( bSetGoToRMode )
{
//add the fragment
OUString aURLNoMark = aTargetURL.GetURLNoMark( INetURLObject::DECODE_WITH_CHARSET );