From bedba56f24ccb1eaa9381ab36c446bb0b00cfb0c Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Mon, 15 Mar 2021 12:23:02 +0200 Subject: [PATCH] GLK: Remove proxy ctors and copy assignment operator --- engines/glk/quest/string.h | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/engines/glk/quest/string.h b/engines/glk/quest/string.h index bb92a595e7d..b75b0630865 100644 --- a/engines/glk/quest/string.h +++ b/engines/glk/quest/string.h @@ -39,14 +39,7 @@ typedef Common::HashMap, Common::IgnoreCase_Hash, class String : public Common::String { public: - String() : Common::String() {} - String(const char *str) : Common::String(str) {} - String(const char *str, uint32 len) : Common::String(str, len) {} - String(const char *beginP, const char *endP) : Common::String(beginP, endP) {} - String(const String &str) : Common::String(str) {} - explicit String(char c) : Common::String(c) {} - - String& operator=(const String &str) { this->Common::String::operator=(str); return *this; } + using Common::String::String; char &operator[](int idx) { assert(_str && idx >= 0 && idx < (int)_size);