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

@ -15,8 +15,7 @@
#include "core/hle/service/ac/ac_u.h"
#include "core/memory.h"
namespace Service {
namespace AC {
namespace Service::AC {
void Module::Interface::CreateDefaultConfig(Kernel::HLERequestContext& ctx) {
IPC::RequestParser rp(ctx, 0x1, 0, 0);
@ -178,5 +177,4 @@ void InstallInterfaces(SM::ServiceManager& service_manager) {
std::make_shared<AC_U>(ac)->InstallAsService(service_manager);
}
} // namespace AC
} // namespace Service
} // namespace Service::AC

View file

@ -13,8 +13,7 @@ namespace Kernel {
class Event;
}
namespace Service {
namespace AC {
namespace Service::AC {
class Module final {
public:
class Interface : public ServiceFramework<Interface> {
@ -155,5 +154,4 @@ protected:
void InstallInterfaces(SM::ServiceManager& service_manager);
} // namespace AC
} // namespace Service
} // namespace Service::AC

View file

@ -4,8 +4,7 @@
#include "core/hle/service/ac/ac_i.h"
namespace Service {
namespace AC {
namespace Service::AC {
AC_I::AC_I(std::shared_ptr<Module> ac) : Module::Interface(std::move(ac), "ac:i", 10) {
static const FunctionInfo functions[] = {
@ -33,5 +32,4 @@ AC_I::AC_I(std::shared_ptr<Module> ac) : Module::Interface(std::move(ac), "ac:i"
RegisterHandlers(functions);
}
} // namespace AC
} // namespace Service
} // namespace Service::AC

View file

@ -7,13 +7,11 @@
#include <memory>
#include "core/hle/service/ac/ac.h"
namespace Service {
namespace AC {
namespace Service::AC {
class AC_I final : public Module::Interface {
public:
explicit AC_I(std::shared_ptr<Module> ac);
};
} // namespace AC
} // namespace Service
} // namespace Service::AC

View file

@ -4,8 +4,7 @@
#include "core/hle/service/ac/ac_u.h"
namespace Service {
namespace AC {
namespace Service::AC {
AC_U::AC_U(std::shared_ptr<Module> ac) : Module::Interface(std::move(ac), "ac:u", 10) {
static const FunctionInfo functions[] = {
@ -33,5 +32,4 @@ AC_U::AC_U(std::shared_ptr<Module> ac) : Module::Interface(std::move(ac), "ac:u"
RegisterHandlers(functions);
}
} // namespace AC
} // namespace Service
} // namespace Service::AC

View file

@ -7,13 +7,11 @@
#include <memory>
#include "core/hle/service/ac/ac.h"
namespace Service {
namespace AC {
namespace Service::AC {
class AC_U final : public Module::Interface {
public:
explicit AC_U(std::shared_ptr<Module> ac);
};
} // namespace AC
} // namespace Service
} // namespace Service::AC