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

@ -6,13 +6,11 @@
#include "core/hle/service/pm/pm_app.h"
#include "core/hle/service/pm/pm_dbg.h"
namespace Service {
namespace PM {
namespace Service::PM {
void InstallInterfaces(SM::ServiceManager& service_manager) {
std::make_shared<PM_APP>()->InstallAsService(service_manager);
std::make_shared<PM_DBG>()->InstallAsService(service_manager);
}
} // namespace PM
} // namespace Service
} // namespace Service::PM

View file

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

View file

@ -5,8 +5,7 @@
#include "core/hle/ipc_helpers.h"
#include "core/hle/service/pm/pm_app.h"
namespace Service {
namespace PM {
namespace Service::PM {
PM_APP::PM_APP() : ServiceFramework("pm:app", 3) {
static const FunctionInfo functions[] = {
@ -30,5 +29,4 @@ PM_APP::PM_APP() : ServiceFramework("pm:app", 3) {
RegisterHandlers(functions);
}
} // namespace PM
} // namespace Service
} // namespace Service::PM

View file

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

View file

@ -5,8 +5,7 @@
#include "core/hle/ipc_helpers.h"
#include "core/hle/service/pm/pm_dbg.h"
namespace Service {
namespace PM {
namespace Service::PM {
PM_DBG::PM_DBG() : ServiceFramework("pm:dbg", 3) {
static const FunctionInfo functions[] = {
@ -20,5 +19,4 @@ PM_DBG::PM_DBG() : ServiceFramework("pm:dbg", 3) {
RegisterHandlers(functions);
}
} // namespace PM
} // namespace Service
} // namespace Service::PM

View file

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