From f0ae48b684e89acd7088c31a8feff5fc03d51105 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 28 May 2014 10:25:22 +0200 Subject: remove unnecessary NULL parameter passed to UNO Exception .. now that we have a default value for that parameter Change-Id: I54d6b0a0a01ce2f2e5168ada0c427424de0477bc --- sd/source/ui/accessibility/AccessibleDocumentViewBase.cxx | 2 +- sd/source/ui/sidebar/PanelFactory.cxx | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) (limited to 'sd/source/ui') diff --git a/sd/source/ui/accessibility/AccessibleDocumentViewBase.cxx b/sd/source/ui/accessibility/AccessibleDocumentViewBase.cxx index 1bede88c285c..0dba41cc3d5b 100644 --- a/sd/source/ui/accessibility/AccessibleDocumentViewBase.cxx +++ b/sd/source/ui/accessibility/AccessibleDocumentViewBase.cxx @@ -277,7 +277,7 @@ Reference SAL_CALL if (nIndex == 0) return mxAccessibleOLEObject; - throw lang::IndexOutOfBoundsException ( "no child with index " + OUString::number(nIndex), NULL); + throw lang::IndexOutOfBoundsException ( "no child with index " + OUString::number(nIndex) ); } diff --git a/sd/source/ui/sidebar/PanelFactory.cxx b/sd/source/ui/sidebar/PanelFactory.cxx index 847ec576ec2f..ec1f3d4929a4 100644 --- a/sd/source/ui/sidebar/PanelFactory.cxx +++ b/sd/source/ui/sidebar/PanelFactory.cxx @@ -137,12 +137,10 @@ Reference SAL_CALL PanelFactory::createUIElement ( ::Window* pParentWindow = VCLUnoHelper::GetWindow(xParentWindow); if ( ! xParentWindow.is() || pParentWindow==NULL) throw RuntimeException( - OUString("PanelFactory::createUIElement called without ParentWindow"), - NULL); + "PanelFactory::createUIElement called without ParentWindow"); if ( ! xFrame.is()) throw RuntimeException( - OUString("PanelFactory::createUIElement called without XFrame"), - NULL); + "PanelFactory::createUIElement called without XFrame"); // Tunnel through the controller to obtain a ViewShellBase. ViewShellBase* pBase = NULL; @@ -155,7 +153,7 @@ Reference SAL_CALL PanelFactory::createUIElement ( pBase = pController->GetViewShellBase(); } if (pBase == NULL) - throw RuntimeException("can not get ViewShellBase for frame", NULL); + throw RuntimeException("can not get ViewShellBase for frame"); // Get bindings from given arguments. const sal_uInt64 nBindingsValue (aArguments.getOrDefault("SfxBindings", sal_uInt64(0))); -- cgit