Commits

Anonymous committed cf21428

CWS swlayoutrefactoring: avoid gcc3 specific workaround for passing temporary objects by reference

Comments (0)

Files changed (2)

sw/inc/ddefld.hxx

 	void DecRefCnt() {	if( !--nRefCnt && pDoc ) _RefCntChgd(); }
 
 	void SetCRLFDelFlag( sal_Bool bFlag = sal_True )	{ bCRLFFlag = bFlag; }
-	SwDDEFieldType( const SwDDEFieldType& );
 };
 
 /*--------------------------------------------------------------------

sw/source/ui/fldui/fldmgr.cxx

             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;
 		}