summaryrefslogtreecommitdiff
path: root/vbahelper
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-04-25 09:59:16 +0200
committerAshod Nakashian <ashod.nakashian@collabora.co.uk>2016-07-12 22:06:19 -0400
commitc5cdfe39d3afca716e7b11f8f8e169ce378861ea (patch)
tree5b804fa2e78405afe16db734f88f24a7b9714209 /vbahelper
parent0c4c31576fe03b3b59217bf9990b75f32d193d0d (diff)
update loplugin stylepolice to check local pointers vars
are actually pointer vars. Also convert from regex to normal code, so we can enable this plugin all the time. Reviewed-on: https://gerrit.libreoffice.org/24391 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com> (cherry picked from commit e8fd5a07eca70912ddee45aaa34d434809b59fb7) Change-Id: Ie36a25ecba61c18f99c77c77646d6459a443cbd1
Diffstat (limited to 'vbahelper')
-rw-r--r--vbahelper/source/vbahelper/vbalineformat.cxx74
1 files changed, 37 insertions, 37 deletions
diff --git a/vbahelper/source/vbahelper/vbalineformat.cxx b/vbahelper/source/vbahelper/vbalineformat.cxx
index f0229e472faa..f236b0a91af0 100644
--- a/vbahelper/source/vbahelper/vbalineformat.cxx
+++ b/vbahelper/source/vbahelper/vbalineformat.cxx
@@ -350,64 +350,64 @@ ScVbaLineFormat::setDashStyle( sal_Int32 _dashstyle ) throw (uno::RuntimeExcepti
else
{
m_xPropertySet->setPropertyValue( "LineStyle" , uno::makeAny( drawing::LineStyle_DASH ) );
- drawing::LineDash pLineDash;
+ drawing::LineDash aLineDash;
Millimeter aMillimeter( m_nLineWeight );
sal_Int32 nPixel = static_cast< sal_Int32 >( aMillimeter.getInHundredthsOfOneMillimeter() );
switch( _dashstyle )
{
case office::MsoLineDashStyle::msoLineDashDot:
- pLineDash.Dots = 1;
- pLineDash.DotLen = nPixel;
- pLineDash.Dashes = 1;
- pLineDash.DashLen = 5 * nPixel;
- pLineDash.Distance = 4 * nPixel;
+ aLineDash.Dots = 1;
+ aLineDash.DotLen = nPixel;
+ aLineDash.Dashes = 1;
+ aLineDash.DashLen = 5 * nPixel;
+ aLineDash.Distance = 4 * nPixel;
break;
case office::MsoLineDashStyle::msoLineLongDashDot:
- pLineDash.Dots = 1;
- pLineDash.DotLen = nPixel;
- pLineDash.Dashes = 1;
- pLineDash.DashLen = 10 * nPixel;
- pLineDash.Distance = 4 * nPixel;
+ aLineDash.Dots = 1;
+ aLineDash.DotLen = nPixel;
+ aLineDash.Dashes = 1;
+ aLineDash.DashLen = 10 * nPixel;
+ aLineDash.Distance = 4 * nPixel;
break;
case office::MsoLineDashStyle::msoLineDash:
- pLineDash.Dots = 0;
- pLineDash.DotLen = 0;
- pLineDash.Dashes = 1;
- pLineDash.DashLen = 6 * nPixel;
- pLineDash.Distance = 4 * nPixel;
+ aLineDash.Dots = 0;
+ aLineDash.DotLen = 0;
+ aLineDash.Dashes = 1;
+ aLineDash.DashLen = 6 * nPixel;
+ aLineDash.Distance = 4 * nPixel;
break;
case office::MsoLineDashStyle::msoLineDashDotDot:
- pLineDash.Dots = 2;
- pLineDash.DotLen = nPixel;
- pLineDash.Dashes = 1;
- pLineDash.DashLen = 10 * nPixel;
- pLineDash.Distance = 3 * nPixel;
+ aLineDash.Dots = 2;
+ aLineDash.DotLen = nPixel;
+ aLineDash.Dashes = 1;
+ aLineDash.DashLen = 10 * nPixel;
+ aLineDash.Distance = 3 * nPixel;
break;
case office::MsoLineDashStyle::msoLineLongDash:
- pLineDash.Dots = 0;
- pLineDash.DotLen = 0;
- pLineDash.Dashes = 1;
- pLineDash.DashLen = 10 * nPixel;
- pLineDash.Distance = 4 * nPixel;
+ aLineDash.Dots = 0;
+ aLineDash.DotLen = 0;
+ aLineDash.Dashes = 1;
+ aLineDash.DashLen = 10 * nPixel;
+ aLineDash.Distance = 4 * nPixel;
break;
case office::MsoLineDashStyle::msoLineSquareDot:
- pLineDash.Dots = 1;
- pLineDash.DotLen = nPixel;
- pLineDash.Dashes = 0;
- pLineDash.DashLen = 0;
- pLineDash.Distance = nPixel;
+ aLineDash.Dots = 1;
+ aLineDash.DotLen = nPixel;
+ aLineDash.Dashes = 0;
+ aLineDash.DashLen = 0;
+ aLineDash.Distance = nPixel;
break;
case office::MsoLineDashStyle::msoLineRoundDot:
- pLineDash.Dots = 1;
- pLineDash.DotLen = nPixel;
- pLineDash.Dashes = 0;
- pLineDash.DashLen = 0;
- pLineDash.Distance = nPixel;
+ aLineDash.Dots = 1;
+ aLineDash.DotLen = nPixel;
+ aLineDash.Dashes = 0;
+ aLineDash.DashLen = 0;
+ aLineDash.Distance = nPixel;
break;
default:
throw uno::RuntimeException( "this MsoLineDashStyle is not supported." );
}
- m_xPropertySet->setPropertyValue( "LineDash" , uno::makeAny( pLineDash ) );
+ m_xPropertySet->setPropertyValue( "LineDash" , uno::makeAny( aLineDash ) );
}
}