summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-02-18 11:39:18 +0000
committerCaolán McNamara <caolanm@redhat.com>2019-02-19 22:17:53 +0100
commite9bc6efbb8f1c1d012e60f3fc9877d311a48ee03 (patch)
tree7a838988a2785183764fb5facc46d0f1e1bbbed0 /vcl
parent8c920614f9cd21c516a5ebcff4e699946b30219d (diff)
read/written as 32bit integers
so just use those 48->32 bytes ofz#13164 1.195G -> 1.190 Change-Id: I145049c9d5fba04c8d5b4271190d7e62755bf8bf Reviewed-on: https://gerrit.libreoffice.org/67964 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/gdi/lineinfo.cxx10
-rw-r--r--vcl/source/gdi/pdfwriter_impl.cxx14
2 files changed, 12 insertions, 12 deletions
diff --git a/vcl/source/gdi/lineinfo.cxx b/vcl/source/gdi/lineinfo.cxx
index 85c54eefbf5a..dd460d77e4b5 100644
--- a/vcl/source/gdi/lineinfo.cxx
+++ b/vcl/source/gdi/lineinfo.cxx
@@ -53,7 +53,7 @@ inline bool ImplLineInfo::operator==( const ImplLineInfo& rB ) const
}
-LineInfo::LineInfo( LineStyle eStyle, long nWidth ) : mpImplLineInfo()
+LineInfo::LineInfo( LineStyle eStyle, sal_Int32 nWidth ) : mpImplLineInfo()
{
mpImplLineInfo->meStyle = eStyle;
mpImplLineInfo->mnWidth = nWidth;
@@ -79,7 +79,7 @@ void LineInfo::SetStyle( LineStyle eStyle )
mpImplLineInfo->meStyle = eStyle;
}
-void LineInfo::SetWidth( long nWidth )
+void LineInfo::SetWidth( sal_Int32 nWidth )
{
mpImplLineInfo->mnWidth = nWidth;
}
@@ -89,7 +89,7 @@ void LineInfo::SetDashCount( sal_uInt16 nDashCount )
mpImplLineInfo->mnDashCount = nDashCount;
}
-void LineInfo::SetDashLen( long nDashLen )
+void LineInfo::SetDashLen( sal_Int32 nDashLen )
{
mpImplLineInfo->mnDashLen = nDashLen;
}
@@ -99,12 +99,12 @@ void LineInfo::SetDotCount( sal_uInt16 nDotCount )
mpImplLineInfo->mnDotCount = nDotCount;
}
-void LineInfo::SetDotLen( long nDotLen )
+void LineInfo::SetDotLen( sal_Int32 nDotLen )
{
mpImplLineInfo->mnDotLen = nDotLen;
}
-void LineInfo::SetDistance( long nDistance )
+void LineInfo::SetDistance( sal_Int32 nDistance )
{
mpImplLineInfo->mnDistance = nDistance;
}
diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx
index ada2cd648646..b6e4629df93e 100644
--- a/vcl/source/gdi/pdfwriter_impl.cxx
+++ b/vcl/source/gdi/pdfwriter_impl.cxx
@@ -1595,25 +1595,25 @@ bool PDFWriterImpl::PDFPage::appendLineInfo( const LineInfo& rInfo, OStringBuffe
rBuffer.append( "[ " );
if( rInfo.GetDashLen() == rInfo.GetDotLen() ) // degraded case
{
- appendMappedLength( static_cast<sal_Int32>(rInfo.GetDashLen()), rBuffer );
+ appendMappedLength( rInfo.GetDashLen(), rBuffer );
rBuffer.append( ' ' );
- appendMappedLength( static_cast<sal_Int32>(rInfo.GetDistance()), rBuffer );
+ appendMappedLength( rInfo.GetDistance(), rBuffer );
rBuffer.append( ' ' );
}
else
{
for( int n = 0; n < rInfo.GetDashCount(); n++ )
{
- appendMappedLength( static_cast<sal_Int32>(rInfo.GetDashLen()), rBuffer );
+ appendMappedLength( rInfo.GetDashLen(), rBuffer );
rBuffer.append( ' ' );
- appendMappedLength( static_cast<sal_Int32>(rInfo.GetDistance()), rBuffer );
+ appendMappedLength( rInfo.GetDistance(), rBuffer );
rBuffer.append( ' ' );
}
for( int m = 0; m < rInfo.GetDotCount(); m++ )
{
- appendMappedLength( static_cast<sal_Int32>(rInfo.GetDotLen()), rBuffer );
+ appendMappedLength( rInfo.GetDotLen(), rBuffer );
rBuffer.append( ' ' );
- appendMappedLength( static_cast<sal_Int32>(rInfo.GetDistance()), rBuffer );
+ appendMappedLength( rInfo.GetDistance(), rBuffer );
rBuffer.append( ' ' );
}
}
@@ -1622,7 +1622,7 @@ bool PDFWriterImpl::PDFPage::appendLineInfo( const LineInfo& rInfo, OStringBuffe
if( rInfo.GetWidth() > 1 )
{
- appendMappedLength( static_cast<sal_Int32>(rInfo.GetWidth()), rBuffer );
+ appendMappedLength( rInfo.GetWidth(), rBuffer );
rBuffer.append( " w\n" );
}
else if( rInfo.GetWidth() == 0 )