mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-21 12:59:12 +00:00
Runtime: Add more usages of explicit
Prevents error-prone implicit conversions where applicable. This targets the regular RuntimeCommon target this time around.
This commit is contained in:
@@ -27,7 +27,7 @@ private:
|
||||
std::optional<CScaledLayoutDescription> xc_scaled;
|
||||
|
||||
public:
|
||||
CLayoutDescription(const TLockedToken<CCharLayoutInfo>& token) : x0_layoutToken(token) {}
|
||||
explicit CLayoutDescription(const TLockedToken<CCharLayoutInfo>& token) : x0_layoutToken(token) {}
|
||||
|
||||
const std::optional<CScaledLayoutDescription>& GetScaledLayoutDescription() const { return xc_scaled; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user