tdf#114441 replace sal_uLong with sal_uInt32 in CopyAnyData

sal_uInt32 is appropriate here as nLen represents a byte count for clipboard data which will not exceed 4GB in practice.

Change-Id: I9f95ae121c82644e3b0f076ec435be901080bfbe
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/202210
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
This commit is contained in:
Ethan Garcia
2026-03-20 11:59:17 +01:00
committed by Michael Weghorn
parent 2269d92bf9
commit 861fb032ae
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -497,7 +497,7 @@ public:
void CopyString( SotClipboardFormatId nFmt, const OUString& rStr );
void CopyByteString( SotClipboardFormatId nFormatId, const OString& rStr );
void CopyAnyData( SotClipboardFormatId nFormatId, const char* pData, sal_uLong nLen );
void CopyAnyData( SotClipboardFormatId nFormatId, const char* pData, sal_uInt32 nLen );
bool HasAnyData() const;
+1 -1
View File
@@ -394,7 +394,7 @@ void TransferDataContainer::CopyINetBookmark( const INetBookmark& rBkmk )
void TransferDataContainer::CopyAnyData( SotClipboardFormatId nFormatId,
const char* pData, sal_uLong nLen )
const char* pData, sal_uInt32 nLen )
{
if( nLen )
{