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

@ -19,8 +19,7 @@
#include "core/movie.h"
#include "video_core/video_core.h"
namespace Service {
namespace HID {
namespace Service::HID {
static std::weak_ptr<Module> current_module;
@ -401,6 +400,4 @@ void InstallInterfaces(SM::ServiceManager& service_manager) {
current_module = hid;
}
} // namespace HID
} // namespace Service
} // namespace Service::HID

View file

@ -27,9 +27,7 @@ namespace CoreTiming {
struct EventType;
};
namespace Service {
namespace HID {
namespace Service::HID {
/**
* Structure of a Pad controller state.
@ -335,5 +333,4 @@ void InstallInterfaces(SM::ServiceManager& service_manager);
/// Reload input devices. Used when input configuration changed
void ReloadInputDevices();
} // namespace HID
} // namespace Service
} // namespace Service::HID

View file

@ -4,8 +4,7 @@
#include "core/hle/service/hid/hid_spvr.h"
namespace Service {
namespace HID {
namespace Service::HID {
Spvr::Spvr(std::shared_ptr<Module> hid) : Module::Interface(std::move(hid), "hid:SPVR", 6) {
static const FunctionInfo functions[] = {
@ -26,5 +25,4 @@ Spvr::Spvr(std::shared_ptr<Module> hid) : Module::Interface(std::move(hid), "hid
RegisterHandlers(functions);
}
} // namespace HID
} // namespace Service
} // namespace Service::HID

View file

@ -6,13 +6,11 @@
#include "core/hle/service/hid/hid.h"
namespace Service {
namespace HID {
namespace Service::HID {
class Spvr final : public Module::Interface {
public:
explicit Spvr(std::shared_ptr<Module> hid);
};
} // namespace HID
} // namespace Service
} // namespace Service::HID

View file

@ -4,8 +4,7 @@
#include "core/hle/service/hid/hid_user.h"
namespace Service {
namespace HID {
namespace Service::HID {
User::User(std::shared_ptr<Module> hid) : Module::Interface(std::move(hid), "hid:USER", 6) {
static const FunctionInfo functions[] = {
@ -26,5 +25,4 @@ User::User(std::shared_ptr<Module> hid) : Module::Interface(std::move(hid), "hid
RegisterHandlers(functions);
}
} // namespace HID
} // namespace Service
} // namespace Service::HID

View file

@ -9,13 +9,11 @@
// This service is used for interfacing to physical user controls.
// Uses include game pad controls, touchscreen, accelerometers, gyroscopes, and debug pad.
namespace Service {
namespace HID {
namespace Service::HID {
class User final : public Module::Interface {
public:
explicit User(std::shared_ptr<Module> hid);
};
} // namespace HID
} // namespace Service
} // namespace Service::HID