desktop/source/lib/init.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit e963da8716a9e418ff220f0c0b5299dcaa82f53a
Author:     Ankit_Jaipuriar <ankitjaipuria...@gmail.com>
AuthorDate: Tue Oct 10 17:06:39 2023 +0530
Commit:     Hossein <hoss...@libreoffice.org>
CommitDate: Fri Nov 3 22:53:01 2023 +0100

    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 <hoss...@libreoffice.org>
    Reviewed-by: Hossein <hoss...@libreoffice.org>

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++ );

Reply via email to