mirror of
https://github.com/PabloMK7/citra.git
synced 2025-09-12 13:50:03 +00:00
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:
parent
80cdfe1c45
commit
46da908a00
221 changed files with 443 additions and 902 deletions
|
@ -11,8 +11,7 @@
|
|||
#include "core/hle/service/sm/sm.h"
|
||||
#include "core/hle/service/sm/srv.h"
|
||||
|
||||
namespace Service {
|
||||
namespace SM {
|
||||
namespace Service::SM {
|
||||
|
||||
static ResultCode ValidateServiceName(const std::string& name) {
|
||||
if (name.size() <= 0 || name.size() > 8) {
|
||||
|
@ -67,5 +66,4 @@ ResultVal<Kernel::SharedPtr<Kernel::ClientSession>> ServiceManager::ConnectToSer
|
|||
return client_port->Connect();
|
||||
}
|
||||
|
||||
} // namespace SM
|
||||
} // namespace Service
|
||||
} // namespace Service::SM
|
||||
|
|
|
@ -19,8 +19,7 @@ class ServerPort;
|
|||
class SessionRequestHandler;
|
||||
} // namespace Kernel
|
||||
|
||||
namespace Service {
|
||||
namespace SM {
|
||||
namespace Service::SM {
|
||||
|
||||
class SRV;
|
||||
|
||||
|
@ -54,5 +53,4 @@ private:
|
|||
std::unordered_map<std::string, Kernel::SharedPtr<Kernel::ClientPort>> registered_services;
|
||||
};
|
||||
|
||||
} // namespace SM
|
||||
} // namespace Service
|
||||
} // namespace Service::SM
|
||||
|
|
|
@ -19,8 +19,7 @@
|
|||
#include "core/hle/service/sm/sm.h"
|
||||
#include "core/hle/service/sm/srv.h"
|
||||
|
||||
namespace Service {
|
||||
namespace SM {
|
||||
namespace Service::SM {
|
||||
|
||||
constexpr int MAX_PENDING_NOTIFICATIONS = 16;
|
||||
|
||||
|
@ -266,5 +265,4 @@ SRV::SRV(std::shared_ptr<ServiceManager> service_manager)
|
|||
|
||||
SRV::~SRV() = default;
|
||||
|
||||
} // namespace SM
|
||||
} // namespace Service
|
||||
} // namespace Service::SM
|
||||
|
|
|
@ -13,8 +13,7 @@ class HLERequestContext;
|
|||
class Semaphore;
|
||||
} // namespace Kernel
|
||||
|
||||
namespace Service {
|
||||
namespace SM {
|
||||
namespace Service::SM {
|
||||
|
||||
/// Interface to "srv:" service
|
||||
class SRV final : public ServiceFramework<SRV> {
|
||||
|
@ -37,5 +36,4 @@ private:
|
|||
get_service_handle_delayed_map;
|
||||
};
|
||||
|
||||
} // namespace SM
|
||||
} // namespace Service
|
||||
} // namespace Service::SM
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue