[Libreoffice-commits] core.git: 2 commits - chart2/source

Caolán McNamara caolanm at redhat.com
Sun Jul 12 13:34:21 PDT 2015


 chart2/source/controller/sidebar/Chart2PanelFactory.cxx |    2 +-
 chart2/source/controller/sidebar/ChartElementsPanel.cxx |    7 +------
 2 files changed, 2 insertions(+), 7 deletions(-)

New commits:
commit 7f0161d88e3a496361e2209d31cc7e9ef42a677e
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Sun Jul 12 21:28:45 2015 +0100

    WaE: C2872 chart is ambiguous
    
    Change-Id: Ib847a0f4ec804766727a2d7a247912f93b30045c

diff --git a/chart2/source/controller/sidebar/Chart2PanelFactory.cxx b/chart2/source/controller/sidebar/Chart2PanelFactory.cxx
index 3d89b61..1222241 100644
--- a/chart2/source/controller/sidebar/Chart2PanelFactory.cxx
+++ b/chart2/source/controller/sidebar/Chart2PanelFactory.cxx
@@ -145,7 +145,7 @@ css::uno::Sequence<OUString> ChartPanelFactory::getSupportedServiceNames()
 extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* SAL_CALL
 org_libreoffice_comp_chart2_sidebar_ChartPanelFactory(css::uno::XComponentContext*, css::uno::Sequence<css::uno::Any> const &)
 {
-    return cppu::acquire(new chart::sidebar::ChartPanelFactory());
+    return cppu::acquire(new ::chart::sidebar::ChartPanelFactory());
 }
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
commit 9c5fc87ceed3eeb6d43f867b5da2abfaa518b5ca
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Sun Jul 12 21:27:48 2015 +0100

    WaE: C4065 switch contains default but no case
    
    Change-Id: I33620609d0b39c8bedf5641101e5c0229364cde0

diff --git a/chart2/source/controller/sidebar/ChartElementsPanel.cxx b/chart2/source/controller/sidebar/ChartElementsPanel.cxx
index 6775659..a9dcaf0a 100644
--- a/chart2/source/controller/sidebar/ChartElementsPanel.cxx
+++ b/chart2/source/controller/sidebar/ChartElementsPanel.cxx
@@ -133,16 +133,11 @@ void ChartElementsPanel::HandleContextChange(
 }
 
 void ChartElementsPanel::NotifyItemUpdate(
-    sal_uInt16 nSID,
+    sal_uInt16 /*nSID*/,
     SfxItemState /*eState*/,
     const SfxPoolItem* /*pState*/,
     const bool )
 {
-    switch(nSID)
-    {
-        default:
-        ;
-    }
 }
 
 }} // end of namespace ::chart::sidebar


More information about the Libreoffice-commits mailing list