summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMathias Bauer <mba@openoffice.org>2011-03-04 12:12:13 +0100
committerMathias Bauer <mba@openoffice.org>2011-03-04 12:12:13 +0100
commitd859498a6a61eaeb65b3fd36513f5dd435aa947c (patch)
tree0aa02878919122d206422c4653b814382209f0d2 /sw
parent3351d657b12c0c93459e0fbff4414c074f4b6718 (diff)
CWS swlayoutrefactoring: avoid gcc3 specific workaround for passing temporary objects by reference
Diffstat (limited to 'sw')
-rw-r--r--sw/inc/ddefld.hxx1
-rw-r--r--sw/source/ui/fldui/fldmgr.cxx4
2 files changed, 2 insertions, 3 deletions
diff --git a/sw/inc/ddefld.hxx b/sw/inc/ddefld.hxx
index 07215ff435ad..6fb7a76c3728 100644
--- a/sw/inc/ddefld.hxx
+++ b/sw/inc/ddefld.hxx
@@ -89,7 +89,6 @@ public:
void DecRefCnt() { if( !--nRefCnt && pDoc ) _RefCntChgd(); }
void SetCRLFDelFlag( sal_Bool bFlag = sal_True ) { bCRLFFlag = bFlag; }
- SwDDEFieldType( const SwDDEFieldType& );
};
/*--------------------------------------------------------------------
diff --git a/sw/source/ui/fldui/fldmgr.cxx b/sw/source/ui/fldui/fldmgr.cxx
index e01be411c866..ccf91732ccef 100644
--- a/sw/source/ui/fldui/fldmgr.cxx
+++ b/sw/source/ui/fldui/fldmgr.cxx
@@ -1034,8 +1034,8 @@ sal_Bool SwFldMgr::InsertFld( const SwInsertFld_Data& rData )
sal_uInt16 nTmpPos = sCmd.SearchAndReplace( ' ', sfx2::cTokenSeperator );
sCmd.SearchAndReplace( ' ', sfx2::cTokenSeperator, nTmpPos );
- SwDDEFieldType* pTyp = (SwDDEFieldType*)pCurShell->InsertFldType(
- SwDDEFieldType( rData.sPar1, sCmd, (sal_uInt16)nFormatId ));
+ SwDDEFieldType aType( rData.sPar1, sCmd, (sal_uInt16) nFormatId );
+ SwDDEFieldType* pTyp = (SwDDEFieldType*) pCurShell->InsertFldType( aType );
pFld = new SwDDEField( pTyp );
break;
}