From 66a175834c39ccde9475eac3adb72a843110d01f Mon Sep 17 00:00:00 2001 From: Thorsten Behrens Date: Thu, 29 Nov 2012 21:26:09 +0100 Subject: c++ API: use css alias in generated headers, adds global css decl This changes all generated API headers (.hpp and .hdl) to use a namespace alias 'css' instead of the pointlessly long com::sun::star Makes the change in cppumaker & associated tools, adds a global namespace alias definition in sal/types.h, and removes a kiloton of local, now pointless-to-harmful versions of that alias from all over the code. Change-Id: Ice5a644a6b971a981f01dc0589d48f5add31cc0f --- toolkit/source/awt/asynccallback.cxx | 4 ---- toolkit/source/awt/vclxmenu.cxx | 2 -- toolkit/source/awt/vclxtoolkit.cxx | 2 -- 3 files changed, 8 deletions(-) (limited to 'toolkit') diff --git a/toolkit/source/awt/asynccallback.cxx b/toolkit/source/awt/asynccallback.cxx index a147c2a18968..4c5a981f078a 100644 --- a/toolkit/source/awt/asynccallback.cxx +++ b/toolkit/source/awt/asynccallback.cxx @@ -31,8 +31,6 @@ // component helper namespace namespace comp_AsyncCallback { -namespace css = ::com::sun::star; - // component and service helper functions: ::rtl::OUString SAL_CALL _getImplementationName(); css::uno::Sequence< ::rtl::OUString > SAL_CALL _getSupportedServiceNames(); @@ -45,8 +43,6 @@ css::uno::Reference< css::uno::XInterface > SAL_CALL _create( css::uno::Referenc /// anonymous implementation namespace namespace { -namespace css = ::com::sun::star; - class AsyncCallback: public ::cppu::WeakImplHelper2< css::lang::XServiceInfo, diff --git a/toolkit/source/awt/vclxmenu.cxx b/toolkit/source/awt/vclxmenu.cxx index b59b9e97ce7f..be0712a0e152 100644 --- a/toolkit/source/awt/vclxmenu.cxx +++ b/toolkit/source/awt/vclxmenu.cxx @@ -641,8 +641,6 @@ void SAL_CALL VCLXMenu::setHelpCommand( sal_Int16 nItemId, const ::rtl::OUString // BEGIN ANONYMOUS NAMESPACE namespace { - namespace css = ::com::sun::star; - Image lcl_XGraphic2VCLImage( const css::uno::Reference< css::graphic::XGraphic >& xGraphic, sal_Bool bResize ) diff --git a/toolkit/source/awt/vclxtoolkit.cxx b/toolkit/source/awt/vclxtoolkit.cxx index f54f8b97b1f0..8879054c8cea 100644 --- a/toolkit/source/awt/vclxtoolkit.cxx +++ b/toolkit/source/awt/vclxtoolkit.cxx @@ -124,8 +124,6 @@ using org::libreoffice::touch::ByteBufferWrapper; #include #include -namespace css = ::com::sun::star; - #define VCLWINDOW_FRAMEWINDOW 0x1000 #define VCLWINDOW_SYSTEMCHILDWINDOW 0x1001 -- cgit