From c04ed9b6ce87d470db77011ef253f9f1ade83a48 Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Fri, 1 Apr 2022 10:12:20 -0700 Subject: [PATCH] use ptext base copy constructor instead of operator= --- src/Text.hh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Text.hh b/src/Text.hh index 13d4b222..a97bba75 100644 --- a/src/Text.hh +++ b/src/Text.hh @@ -212,9 +212,7 @@ struct ptext : parray { ptext() { this->clear(); } - ptext(const ptext& other) { - this->operator=(other); - } + ptext(const ptext& other) : parray(other) { } ptext(ptext&& s) = delete; template