diff options
author | Thorsten Behrens <tbehrens@suse.com> | 2012-11-29 21:26:09 +0100 |
---|---|---|
committer | Thorsten Behrens <tbehrens@suse.com> | 2012-11-30 14:36:36 +0100 |
commit | 66a175834c39ccde9475eac3adb72a843110d01f (patch) | |
tree | ef925daaf84a85731525c2b14f0cd4a2ed84e2de /cppuhelper/source | |
parent | 90eac3e69749a9227c4b6902b1f3cef1e338c6d1 (diff) |
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
Diffstat (limited to 'cppuhelper/source')
-rw-r--r-- | cppuhelper/source/defaultbootstrap.cxx | 2 | ||||
-rw-r--r-- | cppuhelper/source/paths.cxx | 6 | ||||
-rw-r--r-- | cppuhelper/source/propertysetmixin.cxx | 2 | ||||
-rw-r--r-- | cppuhelper/source/servicefactory.cxx | 1 | ||||
-rw-r--r-- | cppuhelper/source/supportsservice.cxx | 6 |
5 files changed, 0 insertions, 17 deletions
diff --git a/cppuhelper/source/defaultbootstrap.cxx b/cppuhelper/source/defaultbootstrap.cxx index f27d82c5c114..1fe1aa76e8bd 100644 --- a/cppuhelper/source/defaultbootstrap.cxx +++ b/cppuhelper/source/defaultbootstrap.cxx @@ -77,8 +77,6 @@ namespace { -namespace css = com::sun::star; - bool nextDirectoryItem(osl::Directory & directory, rtl::OUString * url) { assert(url != 0); for (;;) { diff --git a/cppuhelper/source/paths.cxx b/cppuhelper/source/paths.cxx index d834e25dcab8..ba491c3af281 100644 --- a/cppuhelper/source/paths.cxx +++ b/cppuhelper/source/paths.cxx @@ -38,12 +38,6 @@ #include "paths.hxx" -namespace { - -namespace css = com::sun::star; - -} - rtl::OUString cppu::get_this_libpath() { static rtl::OUString s_uri; if (s_uri.isEmpty()) { diff --git a/cppuhelper/source/propertysetmixin.cxx b/cppuhelper/source/propertysetmixin.cxx index c3c30fb3acd9..3f309ee65c28 100644 --- a/cppuhelper/source/propertysetmixin.cxx +++ b/cppuhelper/source/propertysetmixin.cxx @@ -92,8 +92,6 @@ using cppu::PropertySetMixinImpl; -namespace css = com::sun::star; - namespace { template< typename T > struct AutoDispose { diff --git a/cppuhelper/source/servicefactory.cxx b/cppuhelper/source/servicefactory.cxx index 062e7ffe2d58..6b3acb29bb6e 100644 --- a/cppuhelper/source/servicefactory.cxx +++ b/cppuhelper/source/servicefactory.cxx @@ -69,7 +69,6 @@ using namespace ::rtl; using namespace ::osl; using namespace ::com::sun::star; using namespace ::com::sun::star::uno; -namespace css = com::sun::star; namespace cppu { diff --git a/cppuhelper/source/supportsservice.cxx b/cppuhelper/source/supportsservice.cxx index 9a3771384d28..afef759b965a 100644 --- a/cppuhelper/source/supportsservice.cxx +++ b/cppuhelper/source/supportsservice.cxx @@ -17,12 +17,6 @@ #include "rtl/ustring.hxx" #include "sal/types.h" -namespace { - -namespace css = com::sun::star; - -} - bool cppu::supportsService( css::lang::XServiceInfo * implementation, rtl::OUString const & name) { |