mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2024-11-30 13:24:16 +01:00
core: Make converting constructors explicit where applicable
Avoids unwanted implicit conversions. Thankfully, given the large amount of cleanup in past PRs, only this tiny amount is left over to cover.
This commit is contained in:
parent
4a3c4f5f67
commit
661f7bbcfd
@ -222,7 +222,7 @@ protected:
|
|||||||
* @param max_sessions Maximum number of sessions that can be
|
* @param max_sessions Maximum number of sessions that can be
|
||||||
* connected to this service at the same time.
|
* connected to this service at the same time.
|
||||||
*/
|
*/
|
||||||
ServiceFramework(const char* service_name, u32 max_sessions = DefaultMaxSessions)
|
explicit ServiceFramework(const char* service_name, u32 max_sessions = DefaultMaxSessions)
|
||||||
: ServiceFrameworkBase(service_name, max_sessions, Invoker) {}
|
: ServiceFrameworkBase(service_name, max_sessions, Invoker) {}
|
||||||
|
|
||||||
/// Registers handlers in the service.
|
/// Registers handlers in the service.
|
||||||
|
@ -189,7 +189,7 @@ private:
|
|||||||
u32 entryPoint;
|
u32 entryPoint;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
ElfReader(void* ptr);
|
explicit ElfReader(void* ptr);
|
||||||
|
|
||||||
u32 Read32(int off) const {
|
u32 Read32(int off) const {
|
||||||
return base32[off >> 2];
|
return base32[off >> 2];
|
||||||
|
@ -84,7 +84,7 @@ constexpr u32 MakeMagic(char a, char b, char c, char d) {
|
|||||||
/// Interface for loading an application
|
/// Interface for loading an application
|
||||||
class AppLoader : NonCopyable {
|
class AppLoader : NonCopyable {
|
||||||
public:
|
public:
|
||||||
AppLoader(FileUtil::IOFile&& file) : file(std::move(file)) {}
|
explicit AppLoader(FileUtil::IOFile&& file) : file(std::move(file)) {}
|
||||||
virtual ~AppLoader() {}
|
virtual ~AppLoader() {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -32,7 +32,7 @@ public:
|
|||||||
* Recorder constructor
|
* Recorder constructor
|
||||||
* @param initial_state Initial recorder state
|
* @param initial_state Initial recorder state
|
||||||
*/
|
*/
|
||||||
Recorder(const InitialState& initial_state);
|
explicit Recorder(const InitialState& initial_state);
|
||||||
|
|
||||||
/// Finish recording of this Citrace and save it using the given filename.
|
/// Finish recording of this Citrace and save it using the given filename.
|
||||||
void Finish(const std::string& filename);
|
void Finish(const std::string& filename);
|
||||||
|
Loading…
Reference in New Issue
Block a user