From 3355e20b2849fc1be131095bc2fe5b0a02d41d5a Mon Sep 17 00:00:00 2001 From: Oliver Sander Date: Wed, 29 Jan 2020 09:41:35 +0100 Subject: Implement fillGooString in terms of fillString This requires to add a method to GooString that allows access as a mutable std::string&. --- goo/GooString.h | 1 + 1 file changed, 1 insertion(+) (limited to 'goo') diff --git a/goo/GooString.h b/goo/GooString.h index 11baa8ae..78824455 100644 --- a/goo/GooString.h +++ b/goo/GooString.h @@ -68,6 +68,7 @@ public: explicit GooString(std::string&& str) : std::string(std::move(str)) {} const std::string& toStr() const { return *this; } + std::string& toNonConstStr() { return *this; } // Create a string from chars at . This string // can contain null characters. -- cgit v1.2.3