Tag: cws_dev300_rptchart02 User: oj Date: 2008-06-10 12:50:52+0000 Modified: dba/reportdesign/source/core/api/Section.cxx
Log: #i88579# compiler bugfix for solaris x86 File Changes: Directory: /dba/reportdesign/source/core/api/ ============================================= File [changed]: Section.cxx Url: http://dba.openoffice.org/source/browse/dba/reportdesign/source/core/api/Section.cxx?r1=1.5.4.2&r2=1.5.4.3 Delta lines: +21 -7 -------------------- --- Section.cxx 2008-04-16 06:27:56+0000 1.5.4.2 +++ Section.cxx 2008-06-10 12:50:49+0000 1.5.4.3 @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: Section.cxx,v $ - * $Revision: 1.5.4.2 $ + * $Revision: 1.5.4.3 $ * * This file is part of OpenOffice.org. * @@ -237,15 +237,29 @@ OSL_ENSURE(pModel,"No odel set at the report definition!"); if ( pModel ) { +// DO NOT TOUCH THIS BLOCKS, WE HAVE A COMPILER PROBLEM UNDER SOLARIS X86 osl_incrementInterlockedCount( &m_refCount ); { - m_xProxy.set(pModel->createNewPage(this)->getUnoPage(),uno::UNO_QUERY); + uno::Reference<report::XSection> xTemp = this; + { + { + m_xProxy.set(pModel->createNewPage(xTemp)->getUnoPage(),uno::UNO_QUERY); + } + { ::comphelper::query_aggregation(m_xProxy,m_xDrawPage); + } // set ourself as delegator + { if ( m_xProxy.is() ) - m_xProxy->setDelegator( static_cast<cppu::OWeakObject*>(this) ); + { + m_xProxy->setDelegator( xTemp ); + } + } + } + xTemp.clear(); } +// DO NOT TOUCH THIS BLOCKS, WE HAVE A COMPILER PROBLEM UNDER SOLARIS X86 osl_decrementInterlockedCount( &m_refCount ); } } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
