Kaydet (Commit) 494042ef authored tarafından Tor Lillqvist's avatar Tor Lillqvist

CONTAINER_APPEND is SAL_ULONG, an unsigned long

Fix WaE: implicit conversion from 'unsigned long' to 'sal_uInt32' (aka
'unsigned int') changes value from 18446744073709551615 to 4294967295,
which definitely sounds like an actual bug-inducing error to me, not
"just a warning".

So don't try to use it as default value for a parameter of type
sal_uInt32. Changing the parameter to sal_uLong.

Change-Id: I8ebc7195ba1bf94f4f2d6df7cd7863f779ba3fa6
üst b0bc47d6
......@@ -201,7 +201,7 @@ void ImpSdrGDIMetaFileImport::DoLoopActions(GDIMetaFile& rMtf, SvdProgressInfo*
sal_uInt32 ImpSdrGDIMetaFileImport::DoImport(
const GDIMetaFile& rMtf,
SdrObjList& rOL,
sal_uInt32 nInsPos,
sal_uLong nInsPos,
SvdProgressInfo* pProgrInfo)
{
// setup some global scale parameter
......
......@@ -162,7 +162,7 @@ public:
sal_uInt32 DoImport(
const GDIMetaFile& rMtf,
SdrObjList& rDestList,
sal_uInt32 nInsPos = CONTAINER_APPEND,
sal_uLong nInsPos = CONTAINER_APPEND,
SvdProgressInfo* pProgrInfo = 0);
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment