From 0c3bd1d482ece1f2217cc87069179161f6a5bb56 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 14 Aug 2017 08:28:13 +0200 Subject: new loplugin:droplong The types 'long' and 'unsigned long' are different sizes on different platforms, making them wholy unsuitable for portable code. And when I mean different sizes, I mean 64bit Linux and 64bit Windows have different bit sizes. Change-Id: Id4d8cd709bf71a3f85ed6515fae2b0a21ae8c25d Reviewed-on: https://gerrit.libreoffice.org/41130 Tested-by: Jenkins Reviewed-by: Noel Grandin --- comphelper/source/misc/backupfilehelper.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'comphelper/source') diff --git a/comphelper/source/misc/backupfilehelper.cxx b/comphelper/source/misc/backupfilehelper.cxx index ebf93aeb8282..abc8579a542b 100644 --- a/comphelper/source/misc/backupfilehelper.cxx +++ b/comphelper/source/misc/backupfilehelper.cxx @@ -654,9 +654,9 @@ namespace if (aList.is()) { - const long nLength(aList->getLength()); + const sal_Int32 nLength(aList->getLength()); - for (long a(0); a < nLength; a++) + for (sal_Int32 a(0); a < nLength; a++) { const uno::Reference< xml::dom::XElement > aChild(aList->item(a), uno::UNO_QUERY); @@ -765,9 +765,9 @@ namespace if (aList.is()) { - const long nLength(aList->getLength()); + const sal_Int32 nLength(aList->getLength()); - for (long a(0); a < nLength; a++) + for (sal_Int32 a(0); a < nLength; a++) { const uno::Reference< xml::dom::XElement > aChild(aList->item(a), uno::UNO_QUERY); -- cgit ption value='distro/cib/libreoffice-6-4'>distro/cib/libreoffice-6-4 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2020-05-06Move all public Java classes to libreoffice.jarSamuel Mehrbrodt
2020-02-04tdf#117331 Merge jurt and unoil into ridlSamuel Mehrbrodt