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

@ -7,8 +7,7 @@
#include "core/hle/service/nim/nim_s.h"
#include "core/hle/service/nim/nim_u.h"
namespace Service {
namespace NIM {
namespace Service::NIM {
void InstallInterfaces(SM::ServiceManager& service_manager) {
std::make_shared<NIM_AOC>()->InstallAsService(service_manager);
@ -16,6 +15,4 @@ void InstallInterfaces(SM::ServiceManager& service_manager) {
std::make_shared<NIM_U>()->InstallAsService(service_manager);
}
} // namespace NIM
} // namespace Service
} // namespace Service::NIM

View file

@ -6,10 +6,8 @@
#include "core/hle/service/service.h"
namespace Service {
namespace NIM {
namespace Service::NIM {
void InstallInterfaces(SM::ServiceManager& service_manager);
} // namespace NIM
} // namespace Service
} // namespace Service::NIM

View file

@ -4,8 +4,7 @@
#include "core/hle/service/nim/nim_aoc.h"
namespace Service {
namespace NIM {
namespace Service::NIM {
NIM_AOC::NIM_AOC() : ServiceFramework("nim:aoc", 2) {
const FunctionInfo functions[] = {
@ -23,5 +22,4 @@ NIM_AOC::NIM_AOC() : ServiceFramework("nim:aoc", 2) {
NIM_AOC::~NIM_AOC() = default;
} // namespace NIM
} // namespace Service
} // namespace Service::NIM

View file

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

View file

@ -4,8 +4,7 @@
#include "core/hle/service/nim/nim_s.h"
namespace Service {
namespace NIM {
namespace Service::NIM {
NIM_S::NIM_S() : ServiceFramework("nim:s", 1) {
const FunctionInfo functions[] = {
@ -20,5 +19,4 @@ NIM_S::NIM_S() : ServiceFramework("nim:s", 1) {
NIM_S::~NIM_S() = default;
} // namespace NIM
} // namespace Service
} // namespace Service::NIM

View file

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

View file

@ -6,8 +6,7 @@
#include "core/hle/kernel/event.h"
#include "core/hle/service/nim/nim_u.h"
namespace Service {
namespace NIM {
namespace Service::NIM {
NIM_U::NIM_U() : ServiceFramework("nim:u", 2) {
const FunctionInfo functions[] = {
@ -44,5 +43,4 @@ void NIM_U::CheckSysUpdateAvailable(Kernel::HLERequestContext& ctx) {
LOG_WARNING(Service_NIM, "(STUBBED) called");
}
} // namespace NIM
} // namespace Service
} // namespace Service::NIM

View file

@ -6,8 +6,7 @@
#include "core/hle/service/service.h"
namespace Service {
namespace NIM {
namespace Service::NIM {
class NIM_U final : public ServiceFramework<NIM_U> {
public:
@ -39,5 +38,4 @@ private:
Kernel::SharedPtr<Kernel::Event> nim_system_update_event;
};
} // namespace NIM
} // namespace Service
} // namespace Service::NIM