summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorAnkit_Jaipuriar <ankitjaipuriar07@gmail.com>2023-10-10 17:06:39 +0530
committerHossein <hossein@libreoffice.org>2023-11-03 22:53:01 +0100
commite963da8716a9e418ff220f0c0b5299dcaa82f53a (patch)
treea87a30fb5d3b7e9ba7b36cbcaff81fe790390975 /desktop
parent11ebdfef16501c6d35c3e3d0d62507f706557c71 (diff)
tdf#114441 Convert sal_uLong to better data types
The function getLength() returns a value as sal_Int32, which is then assigned to the variable nLinks. Change-Id: I44d626e2a26e3d9eb15b0884500f0dfddff12e9a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157755 Tested-by: Hossein <hossein@libreoffice.org> Reviewed-by: Hossein <hossein@libreoffice.org>
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/lib/init.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index 78e8eeaf2180..af2eba39876a 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -432,12 +432,12 @@ static void extractLinks(const uno::Reference< container::XNameAccess >& xLinks,
{
const uno::Sequence< OUString > aNames( xLinks->getElementNames() );
- const sal_uLong nLinks = aNames.getLength();
+ const sal_Int32 nLinks = aNames.getLength();
const OUString* pNames = aNames.getConstArray();
static constexpr OUStringLiteral aProp_LinkDisplayName( u"LinkDisplayName" );
static constexpr OUStringLiteral aProp_LinkTarget( u"com.sun.star.document.LinkTarget" );
bool bIsTarget = false;
- for( sal_uLong i = 0; i < nLinks; i++ )
+ for( sal_Int32 i = 0; i < nLinks; i++ )
{
uno::Any aAny;
OUString aLink( *pNames++ );