summaryrefslogtreecommitdiffhomepage
path: root/dev/CompilerKit/StringKit.h
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-10-26 16:00:21 +0100
committerGitHub <noreply@github.com>2025-10-26 16:00:21 +0100
commit215f6fc35253a2326888b49a618f5cb758813977 (patch)
treea027f8e50202351d94f4a0c8b7f1c09472ab8a8a /dev/CompilerKit/StringKit.h
parent14ee44dbc62b1ac63be8e4e7b47127f63e8c99c4 (diff)
parentf0ee6dc640d1d1f00c40bc2f58e9d6a8fd94bd2b (diff)
Merge pull request #16 from nekernel-org/dev
NeCTI: v0.0.7
Diffstat (limited to 'dev/CompilerKit/StringKit.h')
-rw-r--r--dev/CompilerKit/StringKit.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/dev/CompilerKit/StringKit.h b/dev/CompilerKit/StringKit.h
index 422d163..c4efbee 100644
--- a/dev/CompilerKit/StringKit.h
+++ b/dev/CompilerKit/StringKit.h
@@ -56,7 +56,7 @@ class BasicString final {
BasicString& operator+=(const Char rhs);
BasicString& operator+=(const BasicString& rhs);
- operator bool() { return m_Data && m_Data[0] != 0; }
+ explicit operator bool() { return m_Data && m_Data[0] != 0; }
bool operator!() { return !m_Data || m_Data[0] == 0; }
@@ -77,7 +77,7 @@ struct StringBuilder final {
static BasicString FromInt(const char* fmt, int n);
static BasicString FromBool(const char* fmt, bool n);
static BasicString Format(const char* fmt, const char* from);
- static BOOL Equals(const char* lhs, const char* rhs);
+ static Bool Equals(const char* lhs, const char* rhs);
};
using BasicStringOr = ErrorOr<BasicString>;
@@ -85,4 +85,4 @@ using BasicStringPtr = BasicString*;
using BasicStringRef = Ref<BasicString>;
} // namespace CompilerKit
-#endif /* ifndef __NECTI_STRINGKIT__ */ \ No newline at end of file
+#endif /* ifndef __NECTI_STRINGKIT__ */