From 248ddbc4e9191c7f980fc8d6df6337fc535faab0 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 14 Jan 2020 16:26:23 +0200 Subject: clang-tidy modernize-concat-nested-namespace in cppcanvas..cppuhelper Change-Id: I0bb4ea91288a15fb590d077fb390c53be8b50400 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86801 Tested-by: Jenkins Reviewed-by: Noel Grandin --- cppuhelper/source/compat.cxx | 4 ++-- cppuhelper/source/macro_expander.cxx | 8 ++++---- cppuhelper/source/weak.cxx | 14 +------------- 3 files changed, 7 insertions(+), 19 deletions(-) (limited to 'cppuhelper') diff --git a/cppuhelper/source/compat.cxx b/cppuhelper/source/compat.cxx index 600cb369c2b5..f6572ea47ee0 100644 --- a/cppuhelper/source/compat.cxx +++ b/cppuhelper/source/compat.cxx @@ -26,7 +26,7 @@ #include #include -namespace com { namespace sun { namespace star { +namespace com::sun::star { namespace lang { class XMultiComponentFactory; class XMultiServiceFactory; @@ -41,7 +41,7 @@ namespace com { namespace sun { namespace star { class XComponentContext; class XInterface; } -} } } +} // Stubs for removed functionality, to be killed when we bump cppuhelper SONAME diff --git a/cppuhelper/source/macro_expander.cxx b/cppuhelper/source/macro_expander.cxx index 483ca5712766..e9a6cce3fd43 100644 --- a/cppuhelper/source/macro_expander.cxx +++ b/cppuhelper/source/macro_expander.cxx @@ -55,7 +55,7 @@ static Bootstrap const & get_unorc() } -namespace cppuhelper { namespace detail { +namespace cppuhelper::detail { OUString expandMacros(OUString const & text) { OUString t(text); @@ -64,7 +64,7 @@ OUString expandMacros(OUString const & text) { return t; } -} } +} namespace { @@ -157,7 +157,7 @@ Reference< XInterface > service_create( } -namespace cppuhelper { namespace detail { +namespace cppuhelper::detail { Reference< lang::XSingleComponentFactory > create_bootstrap_macro_expander_factory() { @@ -177,6 +177,6 @@ Reference< lang::XSingleComponentFactory > create_bootstrap_macro_expander_facto SAL_NO_ACQUIRE); } -} } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/cppuhelper/source/weak.cxx b/cppuhelper/source/weak.cxx index a7ef2410eeb8..a11e52bbbb78 100644 --- a/cppuhelper/source/weak.cxx +++ b/cppuhelper/source/weak.cxx @@ -325,16 +325,7 @@ void OWeakAggObject::setDelegator( const Reference & rDelegator ) } /** */ //for docpp -namespace com -{ -/** */ //for docpp -namespace sun -{ -/** */ //for docpp -namespace star -{ -/** */ //for docpp -namespace uno +namespace com::sun::star::uno { @@ -534,9 +525,6 @@ Reference< XInterface > WeakReferenceHelper::get() const return Reference< XInterface >(); } -} -} -} } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit