summaryrefslogtreecommitdiff
path: root/desktop/source/deployment/registry
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-01-15 15:31:48 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-01-16 08:22:45 +0100
commit0f0ae0e9fbe5b13c268486d46f545cb514134a65 (patch)
tree3783046ba732f18e83ce37fb44199dbdb94ca371 /desktop/source/deployment/registry
parentd26fb4b6a03976063f788703f5a32b868cc49f1d (diff)
clang-tidy modernize-concat-nested-namespace in dbaccess..desktop
Change-Id: I35a3d422fe020a08f6c2678097252334a3951f7c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86848 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'desktop/source/deployment/registry')
-rw-r--r--desktop/source/deployment/registry/component/dp_compbackenddb.cxx8
-rw-r--r--desktop/source/deployment/registry/component/dp_component.cxx8
-rw-r--r--desktop/source/deployment/registry/configuration/dp_configuration.cxx8
-rw-r--r--desktop/source/deployment/registry/configuration/dp_configurationbackenddb.cxx8
-rw-r--r--desktop/source/deployment/registry/dp_backend.cxx4
-rw-r--r--desktop/source/deployment/registry/dp_backenddb.cxx6
-rw-r--r--desktop/source/deployment/registry/executable/dp_executable.cxx8
-rw-r--r--desktop/source/deployment/registry/executable/dp_executablebackenddb.cxx8
-rw-r--r--desktop/source/deployment/registry/help/dp_help.cxx8
-rw-r--r--desktop/source/deployment/registry/help/dp_helpbackenddb.cxx8
-rw-r--r--desktop/source/deployment/registry/package/dp_extbackenddb.cxx8
-rw-r--r--desktop/source/deployment/registry/package/dp_package.cxx8
-rw-r--r--desktop/source/deployment/registry/script/dp_lib_container.cxx6
-rw-r--r--desktop/source/deployment/registry/script/dp_script.cxx8
-rw-r--r--desktop/source/deployment/registry/script/dp_scriptbackenddb.cxx8
-rw-r--r--desktop/source/deployment/registry/sfwk/dp_parceldesc.cxx8
-rw-r--r--desktop/source/deployment/registry/sfwk/dp_sfwk.cxx10
17 files changed, 31 insertions, 99 deletions
diff --git a/desktop/source/deployment/registry/component/dp_compbackenddb.cxx b/desktop/source/deployment/registry/component/dp_compbackenddb.cxx
index 143b4c3d1685..9b4945addf82 100644
--- a/desktop/source/deployment/registry/component/dp_compbackenddb.cxx
+++ b/desktop/source/deployment/registry/component/dp_compbackenddb.cxx
@@ -37,9 +37,7 @@ using namespace ::com::sun::star::uno;
#define ROOT_ELEMENT_NAME "component-backend-db"
#define KEY_ELEMENT_NAME "component"
-namespace dp_registry {
-namespace backend {
-namespace component {
+namespace dp_registry::backend::component {
ComponentBackendDb::ComponentBackendDb(
Reference<XComponentContext> const & xContext,
@@ -133,8 +131,6 @@ ComponentBackendDb::Data ComponentBackendDb::getEntry(OUString const & url)
}
-} // namespace bundle
-} // namespace backend
-} // namespace dp_registry
+} // namespace
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/desktop/source/deployment/registry/component/dp_component.cxx b/desktop/source/deployment/registry/component/dp_component.cxx
index 25cdf78ab115..eb364a6e677e 100644
--- a/desktop/source/deployment/registry/component/dp_component.cxx
+++ b/desktop/source/deployment/registry/component/dp_component.cxx
@@ -58,9 +58,7 @@ using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::ucb;
-namespace dp_registry {
-namespace backend {
-namespace component {
+namespace dp_registry::backend::component {
namespace {
#define IMPLEMENTATION_NAME "com.sun.star.comp.deployment.component.PackageRegistryBackend"
@@ -1700,9 +1698,7 @@ sdecl::ServiceDecl const serviceDecl(
IMPLEMENTATION_NAME,
BACKEND_SERVICE_NAME );
-} // namespace component
-} // namespace backend
-} // namespace dp_registry
+} // namespace
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/desktop/source/deployment/registry/configuration/dp_configuration.cxx b/desktop/source/deployment/registry/configuration/dp_configuration.cxx
index ad34987632d0..47312a192ac5 100644
--- a/desktop/source/deployment/registry/configuration/dp_configuration.cxx
+++ b/desktop/source/deployment/registry/configuration/dp_configuration.cxx
@@ -57,9 +57,7 @@ using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::ucb;
-namespace dp_registry {
-namespace backend {
-namespace configuration {
+namespace dp_registry::backend::configuration {
namespace {
class BackendImpl : public ::dp_registry::backend::PackageRegistryBackend
@@ -801,8 +799,6 @@ sdecl::ServiceDecl const serviceDecl(
"com.sun.star.comp.deployment.configuration.PackageRegistryBackend",
BACKEND_SERVICE_NAME );
-} // namespace configuration
-} // namespace backend
-} // namespace dp_registry
+} // namespace
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/desktop/source/deployment/registry/configuration/dp_configurationbackenddb.cxx b/desktop/source/deployment/registry/configuration/dp_configurationbackenddb.cxx
index ba8159775639..ab19d8cdf772 100644
--- a/desktop/source/deployment/registry/configuration/dp_configurationbackenddb.cxx
+++ b/desktop/source/deployment/registry/configuration/dp_configurationbackenddb.cxx
@@ -37,9 +37,7 @@ using namespace ::com::sun::star::uno;
#define ROOT_ELEMENT_NAME "configuration-backend-db"
#define KEY_ELEMENT_NAME "configuration"
-namespace dp_registry {
-namespace backend {
-namespace configuration {
+namespace dp_registry::backend::configuration {
ConfigurationBackendDb::ConfigurationBackendDb(
Reference<XComponentContext> const & xContext,
@@ -162,8 +160,6 @@ std::vector<OUString> ConfigurationBackendDb::getAllDataUrls()
}
}
-} // namespace configuration
-} // namespace backend
-} // namespace dp_registry
+} // namespace
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/desktop/source/deployment/registry/dp_backend.cxx b/desktop/source/deployment/registry/dp_backend.cxx
index bdab16126453..daee1d862bbf 100644
--- a/desktop/source/deployment/registry/dp_backend.cxx
+++ b/desktop/source/deployment/registry/dp_backend.cxx
@@ -53,8 +53,7 @@ using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::ucb;
-namespace dp_registry {
-namespace backend {
+namespace dp_registry::backend {
PackageRegistryBackend::~PackageRegistryBackend()
@@ -767,6 +766,5 @@ Any Package::TypeInfo::getIcon( sal_Bool /*highContrast*/, sal_Bool /*smallIcon*
}
}
-}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/desktop/source/deployment/registry/dp_backenddb.cxx b/desktop/source/deployment/registry/dp_backenddb.cxx
index 6361742576b1..7b0ec523fe52 100644
--- a/desktop/source/deployment/registry/dp_backenddb.cxx
+++ b/desktop/source/deployment/registry/dp_backenddb.cxx
@@ -39,8 +39,7 @@
using namespace ::com::sun::star::uno;
-namespace dp_registry {
-namespace backend {
+namespace dp_registry::backend {
BackendDb::BackendDb(
Reference<css::uno::XComponentContext> const & xContext,
@@ -656,7 +655,6 @@ void RegisteredDb::addEntry(OUString const & url)
}
}
-} // namespace backend
-} // namespace dp_registry
+} // namespace
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/desktop/source/deployment/registry/executable/dp_executable.cxx b/desktop/source/deployment/registry/executable/dp_executable.cxx
index 660ffc8a43df..157da6b2f6b2 100644
--- a/desktop/source/deployment/registry/executable/dp_executable.cxx
+++ b/desktop/source/deployment/registry/executable/dp_executable.cxx
@@ -37,9 +37,7 @@ using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::ucb;
using namespace dp_misc;
-namespace dp_registry {
-namespace backend {
-namespace executable {
+namespace dp_registry::backend::executable {
namespace {
class BackendImpl : public ::dp_registry::backend::PackageRegistryBackend
@@ -311,9 +309,7 @@ sdecl::ServiceDecl const serviceDecl(
"com.sun.star.comp.deployment.executable.PackageRegistryBackend",
BACKEND_SERVICE_NAME );
-} // namespace component
-} // namespace backend
-} // namespace dp_registry
+} // namespace
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/desktop/source/deployment/registry/executable/dp_executablebackenddb.cxx b/desktop/source/deployment/registry/executable/dp_executablebackenddb.cxx
index e872ba181131..d4a044e00667 100644
--- a/desktop/source/deployment/registry/executable/dp_executablebackenddb.cxx
+++ b/desktop/source/deployment/registry/executable/dp_executablebackenddb.cxx
@@ -31,9 +31,7 @@ using namespace ::com::sun::star::uno;
#define ROOT_ELEMENT_NAME "executable-backend-db"
#define ENTRY_NAME "executable"
-namespace dp_registry {
-namespace backend {
-namespace executable {
+namespace dp_registry::backend::executable {
ExecutableBackendDb::ExecutableBackendDb(
Reference<XComponentContext> const & xContext,
@@ -63,8 +61,6 @@ OUString ExecutableBackendDb::getKeyElementName()
}
-} // namespace executable
-} // namespace backend
-} // namespace dp_registry
+} // namespace
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/desktop/source/deployment/registry/help/dp_help.cxx b/desktop/source/deployment/registry/help/dp_help.cxx
index cba0ac01d7a7..f940ca963be2 100644
--- a/desktop/source/deployment/registry/help/dp_help.cxx
+++ b/desktop/source/deployment/registry/help/dp_help.cxx
@@ -49,9 +49,7 @@ using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::ucb;
-namespace dp_registry {
-namespace backend {
-namespace help {
+namespace dp_registry::backend::help {
namespace {
@@ -600,8 +598,6 @@ sdecl::ServiceDecl const serviceDecl(
"com.sun.star.comp.deployment.help.PackageRegistryBackend",
BACKEND_SERVICE_NAME );
-} // namespace help
-} // namespace backend
-} // namespace dp_registry
+} // namespace
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/desktop/source/deployment/registry/help/dp_helpbackenddb.cxx b/desktop/source/deployment/registry/help/dp_helpbackenddb.cxx
index 7f9f7095be85..cbb9f991c25a 100644
--- a/desktop/source/deployment/registry/help/dp_helpbackenddb.cxx
+++ b/desktop/source/deployment/registry/help/dp_helpbackenddb.cxx
@@ -37,9 +37,7 @@ using namespace ::com::sun::star::uno;
#define ROOT_ELEMENT_NAME "help-backend-db"
#define KEY_ELEMENT_NAME "help"
-namespace dp_registry {
-namespace backend {
-namespace help {
+namespace dp_registry::backend::help {
HelpBackendDb::HelpBackendDb(
Reference<XComponentContext> const & xContext,
@@ -128,8 +126,6 @@ std::vector<OUString> HelpBackendDb::getAllDataUrls()
return getOneChildFromAllEntries("data-url");
}
-} // namespace help
-} // namespace backend
-} // namespace dp_registry
+} // namespace
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/desktop/source/deployment/registry/package/dp_extbackenddb.cxx b/desktop/source/deployment/registry/package/dp_extbackenddb.cxx
index e47138d6598a..16766a913b8d 100644
--- a/desktop/source/deployment/registry/package/dp_extbackenddb.cxx
+++ b/desktop/source/deployment/registry/package/dp_extbackenddb.cxx
@@ -36,9 +36,7 @@ using namespace ::com::sun::star::uno;
#define ROOT_ELEMENT_NAME "extension-backend-db"
#define KEY_ELEMENT_NAME "extension"
-namespace dp_registry {
-namespace backend {
-namespace bundle {
+namespace dp_registry::backend::bundle {
ExtensionBackendDb::ExtensionBackendDb(
Reference<XComponentContext> const & xContext,
@@ -112,8 +110,6 @@ ExtensionBackendDb::Data ExtensionBackendDb::getEntry(OUString const & url)
}
}
-} // namespace bundle
-} // namespace backend
-} // namespace dp_registry
+} // namespace
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/desktop/source/deployment/registry/package/dp_package.cxx b/desktop/source/deployment/registry/package/dp_package.cxx
index 9ea8c47ea3db..3bb6f2c5bd40 100644
--- a/desktop/source/deployment/registry/package/dp_package.cxx
+++ b/desktop/source/deployment/registry/package/dp_package.cxx
@@ -81,9 +81,7 @@ using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
-namespace dp_registry {
-namespace backend {
-namespace bundle {
+namespace dp_registry::backend::bundle {
namespace {
typedef cppu::ImplInheritanceHelper<PackageRegistryBackend,
@@ -1596,8 +1594,6 @@ Reference<deployment::XPackageRegistry> create(
return new BackendImpl( args, xComponentContext, xRootRegistry );
}
-} // namespace bundle
-} // namespace backend
-} // namespace dp_registry
+} // namespace
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/desktop/source/deployment/registry/script/dp_lib_container.cxx b/desktop/source/deployment/registry/script/dp_lib_container.cxx
index 96ac2517caea..3a6f30253fb0 100644
--- a/desktop/source/deployment/registry/script/dp_lib_container.cxx
+++ b/desktop/source/deployment/registry/script/dp_lib_container.cxx
@@ -37,9 +37,7 @@ using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::ucb;
-namespace dp_registry {
-namespace backend {
-namespace script {
+namespace dp_registry::backend::script {
namespace {
OUString StrCannotDetermineLibName() { return DpResId(RID_STR_CANNOT_DETERMINE_LIBNAME); }
@@ -62,7 +60,5 @@ OUString LibraryContainer::get_libname(
}
}
-}
-}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/desktop/source/deployment/registry/script/dp_script.cxx b/desktop/source/deployment/registry/script/dp_script.cxx
index a6c56bd81969..df9d93eaba5e 100644
--- a/desktop/source/deployment/registry/script/dp_script.cxx
+++ b/desktop/source/deployment/registry/script/dp_script.cxx
@@ -40,9 +40,7 @@ using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::ucb;
-namespace dp_registry {
-namespace backend {
-namespace script {
+namespace dp_registry::backend::script {
namespace {
typedef ::cppu::ImplInheritanceHelper<
@@ -459,8 +457,6 @@ sdecl::ServiceDecl const serviceDecl(
"com.sun.star.comp.deployment.script.PackageRegistryBackend",
BACKEND_SERVICE_NAME );
-} // namespace script
-} // namespace backend
-} // namespace dp_registry
+} // namespace
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/desktop/source/deployment/registry/script/dp_scriptbackenddb.cxx b/desktop/source/deployment/registry/script/dp_scriptbackenddb.cxx
index 9f7d71363d1a..425fa4fe0579 100644
--- a/desktop/source/deployment/registry/script/dp_scriptbackenddb.cxx
+++ b/desktop/source/deployment/registry/script/dp_scriptbackenddb.cxx
@@ -34,9 +34,7 @@ using namespace ::com::sun::star::uno;
#define ROOT_ELEMENT_NAME "script-backend-db"
#define KEY_ELEMENT_NAME "script"
-namespace dp_registry {
-namespace backend {
-namespace script {
+namespace dp_registry::backend::script {
ScriptBackendDb::ScriptBackendDb(
Reference<XComponentContext> const & xContext,
@@ -66,8 +64,6 @@ OUString ScriptBackendDb::getKeyElementName()
}
-} // namespace executable
-} // namespace backend
-} // namespace dp_registry
+} // namespace
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/desktop/source/deployment/registry/sfwk/dp_parceldesc.cxx b/desktop/source/deployment/registry/sfwk/dp_parceldesc.cxx
index 653d0a1a9d67..530924a07864 100644
--- a/desktop/source/deployment/registry/sfwk/dp_parceldesc.cxx
+++ b/desktop/source/deployment/registry/sfwk/dp_parceldesc.cxx
@@ -25,11 +25,7 @@ using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
-namespace dp_registry
-{
-namespace backend
-{
-namespace sfwk
+namespace dp_registry::backend::sfwk
{
@@ -103,7 +99,5 @@ void SAL_CALL ParcelDescDocHandler::endElement( const OUString & aName )
}
-}
-}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/desktop/source/deployment/registry/sfwk/dp_sfwk.cxx b/desktop/source/deployment/registry/sfwk/dp_sfwk.cxx
index 4b66e51ede80..b1041ef31135 100644
--- a/desktop/source/deployment/registry/sfwk/dp_sfwk.cxx
+++ b/desktop/source/deployment/registry/sfwk/dp_sfwk.cxx
@@ -41,11 +41,7 @@ using namespace ::com::sun::star::ucb;
using namespace ::com::sun::star::script;
-namespace dp_registry
-{
-namespace backend
-{
-namespace sfwk
+namespace dp_registry::backend::sfwk
{
namespace {
@@ -358,8 +354,6 @@ sdecl::ServiceDecl const serviceDecl(
"com.sun.star.comp.deployment.sfwk.PackageRegistryBackend",
BACKEND_SERVICE_NAME );
-} // namespace sfwk
-} // namespace backend
-} // namespace dp_registry
+} // namespace
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */