Codechange: return std::string_view for Textbuf::GetText()

This commit is contained in:
Rubidium
2025-04-29 17:31:32 +02:00
committed by rubidium42
parent 261e09a549
commit ef71ce0a9d
12 changed files with 52 additions and 48 deletions
+2 -2
View File
@@ -281,9 +281,9 @@ void Textbuf::DiscardMarkedText(bool update)
* Get the current text.
* @return Current text.
*/
const char *Textbuf::GetText() const
std::string_view Textbuf::GetText() const
{
return this->buf.c_str();
return this->buf;
}
/** Update the character iter after the text has changed. */