diff options
author | Chr. Rossmanith <ChrRossmanith@gmx.de> | 2013-05-30 22:23:34 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2013-05-31 07:26:01 +0000 |
commit | a400b31069a913830b257ac8a1b2131665067ec5 (patch) | |
tree | 55dfb387767f6db82481501c914cbb204184635d /sd | |
parent | 5b26722ace02f71c79573b3795b2bf7b9412090f (diff) |
Remove #define A2S() in PanelFactory.cxx
Change-Id: I650e5826d26b3a86dcddd517ae1f917d1edaedd1
Reviewed-on: https://gerrit.libreoffice.org/4108
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/sidebar/PanelFactory.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sd/source/ui/sidebar/PanelFactory.cxx b/sd/source/ui/sidebar/PanelFactory.cxx index 53fbe580219e..e58ce5d5b2de 100644 --- a/sd/source/ui/sidebar/PanelFactory.cxx +++ b/sd/source/ui/sidebar/PanelFactory.cxx @@ -44,8 +44,6 @@ using namespace cssu; using namespace ::sd::framework; using ::rtl::OUString; -#define A2S(pString) (OUString(pString)) - namespace sd { extern ::Window * createTableDesignPanel (::Window* pParent, ViewShellBase& rBase); } @@ -153,11 +151,11 @@ Reference<ui::XUIElement> SAL_CALL PanelFactory::createUIElement ( ::Window* pParentWindow = VCLUnoHelper::GetWindow(xParentWindow); if ( ! xParentWindow.is() || pParentWindow==NULL) throw RuntimeException( - A2S("PanelFactory::createUIElement called without ParentWindow"), + OUString("PanelFactory::createUIElement called without ParentWindow"), NULL); if ( ! xFrame.is()) throw RuntimeException( - A2S("PanelFactory::createUIElement called without XFrame"), + OUString("PanelFactory::createUIElement called without XFrame"), NULL); // Tunnel through the controller to obtain a ViewShellBase. @@ -171,7 +169,7 @@ Reference<ui::XUIElement> SAL_CALL PanelFactory::createUIElement ( pBase = pController->GetViewShellBase(); } if (pBase == NULL) - throw RuntimeException(A2S("can not get ViewShellBase for frame"), NULL); + throw RuntimeException(OUString("can not get ViewShellBase for frame"), NULL); // Get bindings from given arguments. const sal_uInt64 nBindingsValue (aArguments.getOrDefault("SfxBindings", sal_uInt64(0))); |