$OpenBSD: patch-sw_source_core_unocore_unochart_cxx,v 1.2 2007/12/07 11:30:55 robert Exp $
--- sw/source/core/unocore/unochart.cxx.orig.port	Fri Oct 26 16:59:49 2007
+++ sw/source/core/unocore/unochart.cxx	Thu Dec  6 16:36:13 2007
@@ -1640,7 +1640,7 @@ void SwChartDataProvider::InvalidateTable( const SwTab
         Set_DataSequenceRef_t::iterator aIt( rSet.begin() );
         while (aIt != rSet.end())
         {
-            uno::Reference< util::XModifiable > xRef( uno::Reference< chart2::data::XDataSequence >(*aIt), uno::UNO_QUERY );
+            uno::Reference< util::XModifiable > xRef = uno::Reference< util::XModifiable>( uno::Reference< chart2::data::XDataSequence >(*aIt), uno::UNO_QUERY );
             if (xRef.is())
             {
                 // mark the sequence as 'dirty' and notify listeners
@@ -1673,7 +1673,7 @@ sal_Bool SwChartDataProvider::DeleteBox( const SwTable
             sal_Bool bNowEmpty = sal_False;
 
             // check if weak reference is still valid...
-            uno::Reference< chart2::data::XDataSequence > xRef( uno::Reference< chart2::data::XDataSequence>(*aIt), uno::UNO_QUERY );
+            uno::Reference< chart2::data::XDataSequence > xRef = uno::Reference< chart2::data::XDataSequence >( uno::Reference< chart2::data::XDataSequence>(*aIt), uno::UNO_QUERY );
             if (xRef.is())
             {
                 // then delete that table box (check if implementation cursor needs to be adjusted)
@@ -1715,7 +1715,7 @@ void SwChartDataProvider::DisposeAllDataSequences( con
         Set_DataSequenceRef_t::iterator aEndIt( rSet.end() );
         while (aIt != aEndIt)
         {
-            uno::Reference< lang::XComponent > xRef( uno::Reference< chart2::data::XDataSequence >(*aIt), uno::UNO_QUERY );
+            uno::Reference< lang::XComponent > xRef = uno::Reference< lang::XComponent>( uno::Reference< chart2::data::XDataSequence >(*aIt), uno::UNO_QUERY );
             if (xRef.is())
             {
                 xRef->dispose();
@@ -1794,7 +1794,7 @@ void SwChartDataProvider::AddRowCols(
 			Set_DataSequenceRef_t::iterator aIt( rSet.begin() );
 			while (aIt != rSet.end())
 			{
-				uno::Reference< chart2::data::XTextualDataSequence > xRef( uno::Reference< chart2::data::XDataSequence >(*aIt), uno::UNO_QUERY );
+				uno::Reference< chart2::data::XTextualDataSequence > xRef = uno::Reference< chart2::data::XTextualDataSequence>( uno::Reference< chart2::data::XDataSequence >(*aIt), uno::UNO_QUERY );
 				if (xRef.is())
 				{
 					const sal_Int32 nLen = xRef->getTextualData().getLength();
