[*] DebugBenchmark and ITTYConsole now uses ROStrings

This commit is contained in:
Reece Wilson 2024-04-21 06:02:47 +01:00
parent 7935159290
commit b47cf9f181
4 changed files with 13 additions and 13 deletions

View File

@ -32,15 +32,15 @@ namespace Aurora::Console::ConsoleTTY
virtual AuString GetHeader() = 0; virtual AuString GetHeader() = 0;
virtual AuString GetSubHeader() = 0; virtual AuString GetSubHeader() = 0;
virtual AuString SetHeader(const AuString &newValue) = 0; virtual AuString SetHeader(const AuROString &newValue) = 0;
virtual AuString SetSubHeader(const AuString &newValue) = 0; virtual AuString SetSubHeader(const AuROString &newValue) = 0;
virtual AuString GetHeaderBorderTitle() = 0; virtual AuString GetHeaderBorderTitle() = 0;
virtual AuString GetLogBoxBorderTitle() = 0; virtual AuString GetLogBoxBorderTitle() = 0;
virtual AuString SetHeaderBorderTitle(const AuString &newValue) = 0; virtual AuString SetHeaderBorderTitle(const AuROString &newValue) = 0;
virtual AuString SetLogBoxBorderTitle(const AuString &newValue) = 0; virtual AuString SetLogBoxBorderTitle(const AuROString &newValue) = 0;
virtual ETTYAlign GetTitleAlignment() = 0; virtual ETTYAlign GetTitleAlignment() = 0;

View File

@ -15,7 +15,7 @@ namespace Aurora::Time
struct DebugBenchmark struct DebugBenchmark
{ {
inline DebugBenchmark(AuString &&message) : message_(AuMove(message)) inline DebugBenchmark(AuROString message) : message_(message)
{ {
this->stopwatch_.Start(); this->stopwatch_.Start();
} }

View File

@ -2107,25 +2107,25 @@ namespace Aurora::Console::ConsoleTTY
return AuExchange(this->subheader.align, newValue); return AuExchange(this->subheader.align, newValue);
} }
AuString TTYConsole::SetHeaderBorderTitle(const AuString &newValue) AuString TTYConsole::SetHeaderBorderTitle(const AuROString &newValue)
{ {
this->bTriggerRedraw = true; this->bTriggerRedraw = true;
return AuExchange(this->headerTitle.str, newValue); return AuExchange(this->headerTitle.str, newValue);
} }
AuString TTYConsole::SetLogBoxBorderTitle(const AuString &newValue) AuString TTYConsole::SetLogBoxBorderTitle(const AuROString &newValue)
{ {
this->bTriggerRedraw = true; this->bTriggerRedraw = true;
return AuExchange(this->logTitle.str, newValue); return AuExchange(this->logTitle.str, newValue);
} }
AuString TTYConsole::SetHeader(const AuString &newValue) AuString TTYConsole::SetHeader(const AuROString &newValue)
{ {
this->bTriggerRedraw = true; this->bTriggerRedraw = true;
return AuExchange(this->header.str, newValue); return AuExchange(this->header.str, newValue);
} }
AuString TTYConsole::SetSubHeader(const AuString &newValue) AuString TTYConsole::SetSubHeader(const AuROString &newValue)
{ {
this->bTriggerRedraw = true; this->bTriggerRedraw = true;
return AuExchange(this->subheader.str, newValue); return AuExchange(this->subheader.str, newValue);

View File

@ -169,11 +169,11 @@ namespace Aurora::Console::ConsoleTTY
virtual ETTYAlign SetHeaderAlignment(ETTYAlign newValue) override; virtual ETTYAlign SetHeaderAlignment(ETTYAlign newValue) override;
virtual ETTYAlign SetSubheaderAlignment(ETTYAlign newValue) override; virtual ETTYAlign SetSubheaderAlignment(ETTYAlign newValue) override;
virtual AuString SetHeaderBorderTitle(const AuString &newValue) override; virtual AuString SetHeaderBorderTitle(const AuROString &newValue) override;
virtual AuString SetLogBoxBorderTitle(const AuString &newValue) override; virtual AuString SetLogBoxBorderTitle(const AuROString &newValue) override;
virtual AuString SetHeader(const AuString &newValue) override; virtual AuString SetHeader(const AuROString &newValue) override;
virtual AuString SetSubHeader(const AuString &newValue) override; virtual AuString SetSubHeader(const AuROString &newValue) override;
virtual bool SetTopBorder(bool newValue) override; virtual bool SetTopBorder(bool newValue) override;
virtual bool SetLeftBorder(bool newValue) override; virtual bool SetLeftBorder(bool newValue) override;