Kaydet (Commit) 3b513aef authored tarafından Stephan Bergmann's avatar Stephan Bergmann

tdf#86543: reinterpret_cast -1 of appropriate width as special marker

Change-Id: Idf0d2a77a78e0e8fcbf435984b9b8f4393e4c207
üst daa20dca
......@@ -22,7 +22,7 @@
#include "ddectrl.hxx"
#include <basic/sberrors.hxx>
#define DDE_FREECHANNEL (reinterpret_cast<DdeConnection*>(0xffffffff))
#define DDE_FREECHANNEL (reinterpret_cast<DdeConnection*>(sal_IntPtr(-1)))
#define DDE_FIRSTERR 0x4000
#define DDE_LASTERR 0x4011
......
......@@ -27,7 +27,7 @@
// parameter to pass to the dialog constructor if really no parent is wanted
// whereas NULL chooses the default dialog parent
#define DIALOG_NO_PARENT (reinterpret_cast<vcl::Window*>(0xffffffff))
#define DIALOG_NO_PARENT (reinterpret_cast<vcl::Window*>(sal_IntPtr(-1)))
// - Dialog -
......
......@@ -185,7 +185,7 @@ const SwPageDesc* SwFEShell::GetSelectedPageDescs() const
{
const SwCntntNode* pCNd;
const SwFrm* pMkFrm, *pPtFrm;
const SwPageDesc* pFnd, *pRetDesc = reinterpret_cast<SwPageDesc*>(0xffffffff);
const SwPageDesc* pFnd, *pRetDesc = reinterpret_cast<SwPageDesc*>(sal_IntPtr(-1));
const Point aNulPt;
for(SwPaM& rPaM : GetCrsr()->GetRingContainer())
......@@ -227,7 +227,7 @@ const SwPageDesc* SwFEShell::GetSelectedPageDescs() const
}
}
if( reinterpret_cast<SwPageDesc*>(0xffffffff) == pRetDesc )
if( reinterpret_cast<SwPageDesc*>(sal_IntPtr(-1)) == pRetDesc )
pRetDesc = pFnd;
else if( pFnd != pRetDesc )
{
......
......@@ -486,7 +486,7 @@ void DocxExport::OutputEndNode( const SwEndNode& rEndNode )
{
const SwSectionFmt* pParentFmt = rSect.GetFmt()->GetParent();
if( !pParentFmt )
pParentFmt = reinterpret_cast<SwSectionFmt*>(0xFFFFFFFF) ;
pParentFmt = reinterpret_cast<SwSectionFmt*>(sal_IntPtr(-1));
sal_uLong nRstLnNum;
if( rNd.IsCntntNode() )
......
......@@ -1140,7 +1140,7 @@ sal_uInt16 MSWordSections::NumberOfColumns( const SwDoc &rDoc, const WW8_SepInfo
aSet.SetParent( &rSet );
//0xffffffff, what the hell is going on with that!, fixme most terribly
if ( rInfo.pSectionFmt && reinterpret_cast<SwSectionFmt*>(0xFFFFFFFF) != rInfo.pSectionFmt )
if ( rInfo.pSectionFmt && reinterpret_cast<SwSectionFmt*>(sal_IntPtr(-1)) != rInfo.pSectionFmt )
aSet.Put( rInfo.pSectionFmt->GetFmtAttr( RES_COL ) );
const SwFmtCol& rCol = static_cast<const SwFmtCol&>(aSet.Get( RES_COL ));
......@@ -1327,7 +1327,7 @@ bool WW8_SepInfo::IsProtected() const
bool bRet = false;
if (
pSectionFmt &&
(reinterpret_cast<SwSectionFmt*>(0xFFFFFFFF) != pSectionFmt)
(reinterpret_cast<SwSectionFmt*>(sal_IntPtr(-1)) != pSectionFmt)
)
{
const SwSection *pSection = pSectionFmt->GetSection();
......@@ -1663,7 +1663,7 @@ void MSWordExportBase::SectionProperties( const WW8_SepInfo& rSepInfo, WW8_PdAtt
}
}
if ( reinterpret_cast<SwSectionFmt*>(0xFFFFFFFF) != rSepInfo.pSectionFmt )
if ( reinterpret_cast<SwSectionFmt*>(sal_IntPtr(-1)) != rSepInfo.pSectionFmt )
{
if ( nBreakCode == 0 )
bOutPgDscSet = false;
......
......@@ -2621,7 +2621,7 @@ void MSWordExportBase::WriteText()
const SwSectionFmt* pParentFmt = rSect.GetFmt()->GetParent();
if ( !pParentFmt )
pParentFmt = reinterpret_cast<SwSectionFmt*>(0xFFFFFFFF);
pParentFmt = reinterpret_cast<SwSectionFmt*>(sal_IntPtr(-1));
sal_uLong nRstLnNum;
if ( aIdx.GetNode().IsCntntNode() )
......
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