[Libreoffice-commits] .: Branch 'libreoffice-3-4' - dbaccess/source reportdesign/source

Stephan Bergmann sbergmann at kemper.freedesktop.org
Wed Oct 5 04:33:43 PDT 2011


 dbaccess/source/core/dataaccess/databasedocument.cxx |   19 ++++++++++++++-----
 dbaccess/source/ui/browser/unodatbr.cxx              |    6 +++---
 dbaccess/source/ui/querydesign/TableWindowAccess.cxx |    6 +++++-
 reportdesign/source/filter/xml/xmlExport.cxx         |   16 ++++++++--------
 reportdesign/source/ui/report/ReportController.cxx   |    3 ++-
 reportdesign/source/ui/report/ReportSection.cxx      |    6 +++++-
 6 files changed, 37 insertions(+), 19 deletions(-)

New commits:
commit 3c7a0b5d5455805210262529fbd9815aed6fe267
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Sep 29 23:02:56 2011 +0100

    tweak ambiguities for F-15 gcc 4.6.1-9

diff --git a/dbaccess/source/core/dataaccess/databasedocument.cxx b/dbaccess/source/core/dataaccess/databasedocument.cxx
index c72d7f7..e1c7347 100644
--- a/dbaccess/source/core/dataaccess/databasedocument.cxx
+++ b/dbaccess/source/core/dataaccess/databasedocument.cxx
@@ -1696,10 +1696,13 @@ void ODatabaseDocument::disposing()
     ::osl::ClearableMutexGuard aGuard( m_aMutex );
 
     OSL_ENSURE( m_aControllers.empty(), "ODatabaseDocument::disposing: there still are controllers!" );
-        // normally, nobody should explicitly dispose, but only XCloseable::close the document. And upon
-        // closing, our controllers are closed, too
+    // normally, nobody should explicitly dispose, but only XCloseable::close
+    // the document. And upon closing, our controllers are closed, too
 
-    aKeepAlive.push_back( m_xUIConfigurationManager );
+    {
+        uno::Reference<uno::XInterface> xUIInterface = m_xUIConfigurationManager;
+        aKeepAlive.push_back( xUIInterface );
+    }
     m_xUIConfigurationManager = NULL;
 
     clearObjectContainer( m_xForms );
@@ -1721,10 +1724,16 @@ void ODatabaseDocument::disposing()
     OSL_ENSURE( m_aControllers.empty(), "ODatabaseDocument::disposing: there still are controllers!" );
     impl_disposeControllerFrames_nothrow();
 
-    aKeepAlive.push_back( m_xModuleManager );
+    {
+        uno::Reference<uno::XInterface> xModuleInterface = m_xModuleManager;
+        aKeepAlive.push_back( xModuleInterface );
+    }
     m_xModuleManager.clear();
 
-    aKeepAlive.push_back( m_xTitleHelper );
+    {
+        uno::Reference<uno::XInterface> xTitleInterface = m_xTitleHelper;
+        aKeepAlive.push_back( xTitleInterface );
+    }
     m_xTitleHelper.clear();
 
     m_pImpl.clear();
diff --git a/dbaccess/source/ui/browser/unodatbr.cxx b/dbaccess/source/ui/browser/unodatbr.cxx
index 017794d..37f0880 100644
--- a/dbaccess/source/ui/browser/unodatbr.cxx
+++ b/dbaccess/source/ui/browser/unodatbr.cxx
@@ -781,7 +781,7 @@ sal_Bool SbaTableQueryBrowser::InitializeGridModel(const Reference< ::com::sun::
                         if ( xSupplier.is() )
                             aInitialValues.push_back( NamedValue( ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("FormatsSupplier")), makeAny( xSupplier ) ) );
                         aInitialValues.push_back( NamedValue( ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("TreatAsNumber")), makeAny( (sal_Bool)bFormattedIsNumeric ) ) );
-                        aCopyProperties.push_back( PROPERTY_FORMATKEY );
+                        aCopyProperties.push_back( static_cast<const rtl::OUString&>(PROPERTY_FORMATKEY) );
                         break;
                 }
 
@@ -814,8 +814,8 @@ sal_Bool SbaTableQueryBrowser::InitializeGridModel(const Reference< ::com::sun::
                     aInitialValues.push_back( NamedValue( sDefaultProperty, aDefault ) );
 
                 // transfer properties from the definition to the UNO-model :
-                aCopyProperties.push_back( PROPERTY_HIDDEN );
-                aCopyProperties.push_back( PROPERTY_WIDTH );
+                aCopyProperties.push_back( static_cast<const rtl::OUString&>(PROPERTY_HIDDEN) );
+                aCopyProperties.push_back( static_cast<const rtl::OUString&>(PROPERTY_WIDTH) );
 
                 // help text to display for the column
                 Any aDescription;
diff --git a/dbaccess/source/ui/querydesign/TableWindowAccess.cxx b/dbaccess/source/ui/querydesign/TableWindowAccess.cxx
index 9ffe63e..eac0c75 100644
--- a/dbaccess/source/ui/querydesign/TableWindowAccess.cxx
+++ b/dbaccess/source/ui/querydesign/TableWindowAccess.cxx
@@ -254,7 +254,11 @@ namespace dbaui
             ::std::vector< Reference<XInterface> > aRelations;
             aRelations.reserve(5); // just guessing
             for (; aIter != aEnd ; ++aIter )
-                aRelations.push_back(getParentChild(aIter - pConnectionList->begin()));
+            {
+                uno::Reference<uno::XInterface> xInterface =
+                    getParentChild(aIter - pConnectionList->begin());
+                aRelations.push_back(xInterface);
+            }
             
             Reference<XInterface> *pRelations = aRelations.empty() ? 0 : &aRelations[0];
             Sequence< Reference<XInterface> > aSeq(pRelations, aRelations.size());
diff --git a/reportdesign/source/filter/xml/xmlExport.cxx b/reportdesign/source/filter/xml/xmlExport.cxx
index b0f6db2..1f37f3a 100644
--- a/reportdesign/source/filter/xml/xmlExport.cxx
+++ b/reportdesign/source/filter/xml/xmlExport.cxx
@@ -1201,15 +1201,15 @@ void ORptExport::exportAutoStyle(XPropertySet* _xProp,const Reference<XFormatted
             if ( !aPos.X )
             {
                 sBorderProp = PROPERTY_BORDERLEFT;
-                aProps.push_back(PROPERTY_BORDERRIGHT);
+                aProps.push_back(static_cast<const rtl::OUString&>(PROPERTY_BORDERRIGHT));
             }
             else
             {
                 sBorderProp = PROPERTY_BORDERRIGHT;
-                aProps.push_back(PROPERTY_BORDERLEFT);
+                aProps.push_back(static_cast<const rtl::OUString&>(PROPERTY_BORDERLEFT));
             }
-            aProps.push_back(PROPERTY_BORDERTOP);
-            aProps.push_back(PROPERTY_BORDERBOTTOM);
+            aProps.push_back(static_cast<const rtl::OUString&>(PROPERTY_BORDERTOP));
+            aProps.push_back(static_cast<const rtl::OUString&>(PROPERTY_BORDERBOTTOM));
         }
         else // horizontal
         {
@@ -1217,15 +1217,15 @@ void ORptExport::exportAutoStyle(XPropertySet* _xProp,const Reference<XFormatted
             if ( (aPos.Y + aSize.Height) == nSectionHeight )
             {
                 sBorderProp = PROPERTY_BORDERBOTTOM;
-                aProps.push_back(PROPERTY_BORDERTOP);
+                aProps.push_back(static_cast<const rtl::OUString&>(PROPERTY_BORDERTOP));
             }
             else
             {
                 sBorderProp = PROPERTY_BORDERTOP;
-                aProps.push_back(PROPERTY_BORDERBOTTOM);
+                aProps.push_back(static_cast<const rtl::OUString&>(PROPERTY_BORDERBOTTOM));
             }
-            aProps.push_back(PROPERTY_BORDERRIGHT);
-            aProps.push_back(PROPERTY_BORDERLEFT);
+            aProps.push_back(static_cast<const rtl::OUString&>(PROPERTY_BORDERRIGHT));
+            aProps.push_back(static_cast<const rtl::OUString&>(PROPERTY_BORDERLEFT));
         }
 
         xBorderProp->setPropertyValue(sBorderProp,uno::makeAny(aValue));
diff --git a/reportdesign/source/ui/report/ReportController.cxx b/reportdesign/source/ui/report/ReportController.cxx
index 2ff973f..38407f1 100644
--- a/reportdesign/source/ui/report/ReportController.cxx
+++ b/reportdesign/source/ui/report/ReportController.cxx
@@ -257,7 +257,8 @@ void lcl_getReportControlFormat(const Sequence< PropertyValue >& aArgs,
     }
     else
     {
-        _rControlsFormats.push_back(xReportControlFormat);
+        uno::Reference<uno::XInterface> xInterface = xReportControlFormat;
+        _rControlsFormats.push_back(xInterface);
     }
 
     if ( !_xWindow.is() )
diff --git a/reportdesign/source/ui/report/ReportSection.cxx b/reportdesign/source/ui/report/ReportSection.cxx
index 66b5658..af6947f 100644
--- a/reportdesign/source/ui/report/ReportSection.cxx
+++ b/reportdesign/source/ui/report/ReportSection.cxx
@@ -726,7 +726,11 @@ void OReportSection::fillControlModelSelection(::std::vector< uno::Reference< un
             const SdrObject* pDlgEdObj = rMarkList.GetMark(i)->GetMarkedSdrObj();
             const OObjectBase* pObj = dynamic_cast<const OObjectBase*>(pDlgEdObj);
             if ( pObj )
-                _rSelection.push_back(pObj->getReportComponent());
+            {
+                uno::Reference<uno::XInterface> xInterface =
+                    pObj->getReportComponent();
+                _rSelection.push_back(xInterface);
+            }
         }
     }
 }


More information about the Libreoffice-commits mailing list