diff --git a/headers/os/support/String.h b/headers/os/support/String.h index 585b394cd6..9ca5285094 100644 --- a/headers/os/support/String.h +++ b/headers/os/support/String.h @@ -113,6 +113,8 @@ public: bool operator>(const char* string) const; bool operator!=(const char* string) const; + operator const char*() const; + // strcmp()-style compare functions int Compare(const BString& string) const; int Compare(const char* string) const; @@ -423,6 +425,13 @@ BString::operator!=(const char* string) const } +inline +BString::operator const char*() const +{ + return String(); +} + + inline bool operator<(const char *str, const BString &string) {