summaryrefslogtreecommitdiff
path: root/sax/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-12-20 15:53:21 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-12-21 08:22:29 +0100
commit783120996aba341519393dd0100520707249d208 (patch)
treeaa6ff11749e3880ca7df05010277fde6a6269b45 /sax/source
parent24158311c115c2db6dd05a751f75a5c084e2c0d1 (diff)
new loplugin: convertlong
merge the droplong and convertuintptr into one new plugin. Limit the analysis to looking at var decl's, since that seems to be safest proposition, even if that too needs some careful analysis. Change-Id: Id005baaf05cfb157ce44a06a1c81f08559a07d1f Reviewed-on: https://gerrit.libreoffice.org/46851 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sax/source')
-rw-r--r--sax/source/tools/converter.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sax/source/tools/converter.cxx b/sax/source/tools/converter.cxx
index 431cfde4308a..b824015d1126 100644
--- a/sax/source/tools/converter.cxx
+++ b/sax/source/tools/converter.cxx
@@ -351,7 +351,7 @@ void Converter::convertMeasure( OUStringBuffer& rBuffer,
case MeasureUnit::MM_10TH:
case MeasureUnit::MM_100TH:
{
- long nFac2 = (MeasureUnit::MM_100TH == nSourceUnit) ? 100 : 10;
+ int nFac2 = (MeasureUnit::MM_100TH == nSourceUnit) ? 100 : 10;
switch( nTargetUnit )
{
case MeasureUnit::MM_100TH: