service: Use nested namespace specifiers where applicable

There were a few places where nested namespace specifiers weren't being
used where they could be within the service code. This amends that to
make the namespacing a tiny bit more compact.
This commit is contained in:
Lioncash 2018-09-22 14:23:08 +02:00 committed by fearlessTobi
parent 80cdfe1c45
commit 46da908a00
221 changed files with 443 additions and 902 deletions

View file

@ -8,8 +8,7 @@
#include "core/hle/service/qtm/qtm_sp.h"
#include "core/hle/service/qtm/qtm_u.h"
namespace Service {
namespace QTM {
namespace Service::QTM {
void InstallInterfaces(SM::ServiceManager& service_manager) {
std::make_shared<QTM_C>()->InstallAsService(service_manager);
@ -18,5 +17,4 @@ void InstallInterfaces(SM::ServiceManager& service_manager) {
std::make_shared<QTM_U>()->InstallAsService(service_manager);
}
} // namespace QTM
} // namespace Service
} // namespace Service::QTM

View file

@ -6,11 +6,9 @@
#include "core/hle/service/service.h"
namespace Service {
namespace QTM {
namespace Service::QTM {
/// Initializes all QTM services.
void InstallInterfaces(SM::ServiceManager& service_manager);
} // namespace QTM
} // namespace Service
} // namespace Service::QTM

View file

@ -5,8 +5,7 @@
#include "core/hle/ipc_helpers.h"
#include "core/hle/service/qtm/qtm_c.h"
namespace Service {
namespace QTM {
namespace Service::QTM {
QTM_C::QTM_C() : ServiceFramework("qtm:c", 2) {
static const FunctionInfo functions[] = {
@ -20,5 +19,4 @@ QTM_C::QTM_C() : ServiceFramework("qtm:c", 2) {
RegisterHandlers(functions);
};
} // namespace QTM
} // namespace Service
} // namespace Service::QTM

View file

@ -6,8 +6,7 @@
#include "core/hle/service/service.h"
namespace Service {
namespace QTM {
namespace Service::QTM {
class QTM_C final : public ServiceFramework<QTM_C> {
public:
@ -15,5 +14,4 @@ public:
~QTM_C() = default;
};
} // namespace QTM
} // namespace Service
} // namespace Service::QTM

View file

@ -5,8 +5,7 @@
#include "core/hle/ipc_helpers.h"
#include "core/hle/service/qtm/qtm_s.h"
namespace Service {
namespace QTM {
namespace Service::QTM {
QTM_S::QTM_S() : ServiceFramework("qtm:s", 2) {
static const FunctionInfo functions[] = {
@ -20,5 +19,4 @@ QTM_S::QTM_S() : ServiceFramework("qtm:s", 2) {
RegisterHandlers(functions);
}
} // namespace QTM
} // namespace Service
} // namespace Service::QTM

View file

@ -6,8 +6,7 @@
#include "core/hle/service/service.h"
namespace Service {
namespace QTM {
namespace Service::QTM {
class QTM_S final : public ServiceFramework<QTM_S> {
public:
@ -15,5 +14,4 @@ public:
~QTM_S() = default;
};
} // namespace QTM
} // namespace Service
} // namespace Service::QTM

View file

@ -5,8 +5,7 @@
#include "core/hle/ipc_helpers.h"
#include "core/hle/service/qtm/qtm_sp.h"
namespace Service {
namespace QTM {
namespace Service::QTM {
QTM_SP::QTM_SP() : ServiceFramework("qtm:sp", 2) {
static const FunctionInfo functions[] = {
@ -20,5 +19,4 @@ QTM_SP::QTM_SP() : ServiceFramework("qtm:sp", 2) {
RegisterHandlers(functions);
}
} // namespace QTM
} // namespace Service
} // namespace Service::QTM

View file

@ -6,8 +6,7 @@
#include "core/hle/service/service.h"
namespace Service {
namespace QTM {
namespace Service::QTM {
class QTM_SP final : public ServiceFramework<QTM_SP> {
public:
@ -15,5 +14,4 @@ public:
~QTM_SP() = default;
};
} // namespace QTM
} // namespace Service
} // namespace Service::QTM

View file

@ -5,8 +5,7 @@
#include "core/hle/ipc_helpers.h"
#include "core/hle/service/qtm/qtm_u.h"
namespace Service {
namespace QTM {
namespace Service::QTM {
QTM_U::QTM_U() : ServiceFramework("qtm:u", 2) {
static const FunctionInfo functions[] = {
@ -20,5 +19,4 @@ QTM_U::QTM_U() : ServiceFramework("qtm:u", 2) {
RegisterHandlers(functions);
}
} // namespace QTM
} // namespace Service
} // namespace Service::QTM

View file

@ -6,8 +6,7 @@
#include "core/hle/service/service.h"
namespace Service {
namespace QTM {
namespace Service::QTM {
class QTM_U final : public ServiceFramework<QTM_U> {
public:
@ -15,5 +14,4 @@ public:
~QTM_U() = default;
};
} // namespace QTM
} // namespace Service
} // namespace Service::QTM