diff options
author | Noel Grandin <noel@peralex.com> | 2014-05-28 10:25:22 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-05-29 09:01:40 +0200 |
commit | f0ae48b684e89acd7088c31a8feff5fc03d51105 (patch) | |
tree | c2560690a0d7ba016ff832cd1561da5d4532c6d9 /sd/source/ui | |
parent | 7e4c6e1ff1961ad7a48cc9c1d9b3668372c6aed8 (diff) |
remove unnecessary NULL parameter passed to UNO Exception
.. now that we have a default value for that parameter
Change-Id: I54d6b0a0a01ce2f2e5168ada0c427424de0477bc
Diffstat (limited to 'sd/source/ui')
-rw-r--r-- | sd/source/ui/accessibility/AccessibleDocumentViewBase.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/sidebar/PanelFactory.cxx | 8 |
2 files changed, 4 insertions, 6 deletions
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<XAccessible> 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<ui::XUIElement> 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<ui::XUIElement> 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))); |