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:
committed by
Michael Weghorn
parent
2269d92bf9
commit
861fb032ae
@@ -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;
|
||||
|
||||
|
||||
@@ -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 )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user