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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user