summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorThorsten Behrens <tbehrens@suse.com>2012-11-29 21:26:09 +0100
committerThorsten Behrens <tbehrens@suse.com>2012-11-30 14:36:36 +0100
commit66a175834c39ccde9475eac3adb72a843110d01f (patch)
treeef925daaf84a85731525c2b14f0cd4a2ed84e2de /svl
parent90eac3e69749a9227c4b6902b1f3cef1e338c6d1 (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 'svl')
-rw-r--r--svl/qa/unit/test_URIHelper.cxx2
-rw-r--r--svl/source/config/asiancfg.cxx2
-rw-r--r--svl/source/config/itemholder2.cxx6
-rw-r--r--svl/source/config/itemholder2.hxx6
-rw-r--r--svl/source/misc/getstringresource.cxx2
-rw-r--r--svl/source/misc/urihelper.cxx1
-rw-r--r--svl/source/uno/pathservice.cxx1
-rw-r--r--svl/source/uno/registerservices.cxx1
8 files changed, 0 insertions, 21 deletions
diff --git a/svl/qa/unit/test_URIHelper.cxx b/svl/qa/unit/test_URIHelper.cxx
index 179ef3a2289e..1f16193196f5 100644
--- a/svl/qa/unit/test_URIHelper.cxx
+++ b/svl/qa/unit/test_URIHelper.cxx
@@ -64,8 +64,6 @@ namespace com { namespace sun { namespace star { namespace ucb {
namespace {
-namespace css = com::sun::star;
-
// This class only implements that subset of functionality of a proper
// css::ucb::Content that is known to be needed here:
class Content:
diff --git a/svl/source/config/asiancfg.cxx b/svl/source/config/asiancfg.cxx
index 810b1c163c3c..29868af5e5f7 100644
--- a/svl/source/config/asiancfg.cxx
+++ b/svl/source/config/asiancfg.cxx
@@ -44,8 +44,6 @@
namespace {
-namespace css = com::sun::star;
-
rtl::OUString toString(css::lang::Locale const & locale) {
SAL_WARN_IF(
locale.Language.indexOf('-') != -1, "svl",
diff --git a/svl/source/config/itemholder2.cxx b/svl/source/config/itemholder2.cxx
index 1659d0a89134..e8129d35a6c9 100644
--- a/svl/source/config/itemholder2.cxx
+++ b/svl/source/config/itemholder2.cxx
@@ -32,12 +32,6 @@
#include <tools/debug.hxx>
//-----------------------------------------------
-// namespaces
-
-namespace css = ::com::sun::star;
-
-
-//-----------------------------------------------
ItemHolder2::ItemHolder2()
: ItemHolderMutexBase()
{
diff --git a/svl/source/config/itemholder2.hxx b/svl/source/config/itemholder2.hxx
index d8b43bde8ece..1e0db6bfa715 100644
--- a/svl/source/config/itemholder2.hxx
+++ b/svl/source/config/itemholder2.hxx
@@ -24,12 +24,6 @@
#include <cppuhelper/implbase1.hxx>
#include <com/sun/star/lang/XEventListener.hpp>
-//-----------------------------------------------
-// namespaces
-
-namespace css = ::com::sun::star;
-
-
class ItemHolder2 : private ItemHolderMutexBase
, public ::cppu::WeakImplHelper1< css::lang::XEventListener >
{
diff --git a/svl/source/misc/getstringresource.cxx b/svl/source/misc/getstringresource.cxx
index a87c36b334d7..22d5cad97847 100644
--- a/svl/source/misc/getstringresource.cxx
+++ b/svl/source/misc/getstringresource.cxx
@@ -35,8 +35,6 @@
namespace {
-namespace css = com::sun::star;
-
class ResMgrMap: private boost::noncopyable {
public:
~ResMgrMap();
diff --git a/svl/source/misc/urihelper.cxx b/svl/source/misc/urihelper.cxx
index 35bd41ed265d..2e7e2bd5b19b 100644
--- a/svl/source/misc/urihelper.cxx
+++ b/svl/source/misc/urihelper.cxx
@@ -44,7 +44,6 @@
#include <unotools/charclass.hxx>
#include "rtl/instance.hxx"
-namespace css = com::sun::star;
using namespace com::sun::star;
//============================================================================
diff --git a/svl/source/uno/pathservice.cxx b/svl/source/uno/pathservice.cxx
index 841d0d56e8fd..e35e3b89b4a8 100644
--- a/svl/source/uno/pathservice.cxx
+++ b/svl/source/uno/pathservice.cxx
@@ -25,7 +25,6 @@
#include <com/sun/star/frame/XConfigManager.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
-namespace css = com::sun::star;
using rtl::OUString;
// -----------------------------------------------------------------------
diff --git a/svl/source/uno/registerservices.cxx b/svl/source/uno/registerservices.cxx
index f8c380f95594..b0f3b5bdbf4a 100644
--- a/svl/source/uno/registerservices.cxx
+++ b/svl/source/uno/registerservices.cxx
@@ -25,7 +25,6 @@
#include <com/sun/star/registry/XRegistryKey.hpp>
#include <svl/svldllapi.h>
-namespace css = com::sun::star;
using css::uno::Reference;
using css::uno::Sequence;
using rtl::OUString;