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 --- fpicker/source/generic/fpicker.cxx | 2 -- fpicker/source/win32/filepicker/VistaFilePicker.cxx | 2 -- fpicker/source/win32/filepicker/VistaFilePicker.hxx | 2 -- fpicker/source/win32/filepicker/VistaFilePickerEventHandler.cxx | 2 -- fpicker/source/win32/filepicker/VistaFilePickerEventHandler.hxx | 2 -- fpicker/source/win32/filepicker/VistaFilePickerImpl.cxx | 2 -- fpicker/source/win32/filepicker/VistaFilePickerImpl.hxx | 2 -- fpicker/source/win32/filepicker/asyncrequests.hxx | 2 -- 8 files changed, 16 deletions(-) (limited to 'fpicker') diff --git a/fpicker/source/generic/fpicker.cxx b/fpicker/source/generic/fpicker.cxx index cf1ec475005b..43f584589f06 100644 --- a/fpicker/source/generic/fpicker.cxx +++ b/fpicker/source/generic/fpicker.cxx @@ -35,8 +35,6 @@ #include #endif -namespace css = com::sun::star; - using css::uno::Reference; using css::uno::Sequence; using rtl::OUString; diff --git a/fpicker/source/win32/filepicker/VistaFilePicker.cxx b/fpicker/source/win32/filepicker/VistaFilePicker.cxx index da1cc07ae105..40c2fa37d548 100644 --- a/fpicker/source/win32/filepicker/VistaFilePicker.cxx +++ b/fpicker/source/win32/filepicker/VistaFilePicker.cxx @@ -56,8 +56,6 @@ // namespace directives //------------------------------------------------------------------------ -namespace css = ::com::sun::star; - namespace fpicker{ namespace win32{ namespace vista{ diff --git a/fpicker/source/win32/filepicker/VistaFilePicker.hxx b/fpicker/source/win32/filepicker/VistaFilePicker.hxx index 86a2784d3f47..0fdd42de3529 100644 --- a/fpicker/source/win32/filepicker/VistaFilePicker.hxx +++ b/fpicker/source/win32/filepicker/VistaFilePicker.hxx @@ -40,8 +40,6 @@ #include #include -namespace css = ::com::sun::star; - namespace fpicker{ namespace win32{ namespace vista{ diff --git a/fpicker/source/win32/filepicker/VistaFilePickerEventHandler.cxx b/fpicker/source/win32/filepicker/VistaFilePickerEventHandler.cxx index 988b7fd1f942..cef6ad360f35 100644 --- a/fpicker/source/win32/filepicker/VistaFilePickerEventHandler.cxx +++ b/fpicker/source/win32/filepicker/VistaFilePickerEventHandler.cxx @@ -41,8 +41,6 @@ // namespace directives //------------------------------------------------------------------------ -namespace css = ::com::sun::star; - namespace fpicker{ namespace win32{ namespace vista{ diff --git a/fpicker/source/win32/filepicker/VistaFilePickerEventHandler.hxx b/fpicker/source/win32/filepicker/VistaFilePickerEventHandler.hxx index dd22a75044fa..4da4bee44747 100644 --- a/fpicker/source/win32/filepicker/VistaFilePickerEventHandler.hxx +++ b/fpicker/source/win32/filepicker/VistaFilePickerEventHandler.hxx @@ -40,8 +40,6 @@ #include #include -namespace css = ::com::sun::star; - namespace fpicker{ namespace win32{ namespace vista{ diff --git a/fpicker/source/win32/filepicker/VistaFilePickerImpl.cxx b/fpicker/source/win32/filepicker/VistaFilePickerImpl.cxx index d3d1689ae217..655568508b76 100644 --- a/fpicker/source/win32/filepicker/VistaFilePickerImpl.cxx +++ b/fpicker/source/win32/filepicker/VistaFilePickerImpl.cxx @@ -55,8 +55,6 @@ namespace fpicker{ namespace win32{ namespace vista{ -namespace css = ::com::sun::star; - //----------------------------------------------------------------------------- // types, const etcpp. //----------------------------------------------------------------------------- diff --git a/fpicker/source/win32/filepicker/VistaFilePickerImpl.hxx b/fpicker/source/win32/filepicker/VistaFilePickerImpl.hxx index 15ed136b5d8c..03e5a927b651 100644 --- a/fpicker/source/win32/filepicker/VistaFilePickerImpl.hxx +++ b/fpicker/source/win32/filepicker/VistaFilePickerImpl.hxx @@ -54,8 +54,6 @@ #include #include -namespace css = ::com::sun::star; - namespace fpicker{ namespace win32{ namespace vista{ diff --git a/fpicker/source/win32/filepicker/asyncrequests.hxx b/fpicker/source/win32/filepicker/asyncrequests.hxx index 6e3fc5233220..265259dbece1 100644 --- a/fpicker/source/win32/filepicker/asyncrequests.hxx +++ b/fpicker/source/win32/filepicker/asyncrequests.hxx @@ -28,8 +28,6 @@ #include #include -namespace css = ::com::sun::star; - namespace fpicker{ namespace win32{ namespace vista{ -- cgit