Use const UColor pointer

This commit is contained in:
smallmodel 2025-01-07 00:32:03 +01:00
parent 3bcd5cf308
commit 25f4d0199d
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512
2 changed files with 12 additions and 12 deletions

View file

@ -305,7 +305,7 @@ void UIConsole::setConsoleHandler
void UIConsole::AddText
(
const char *text,
UColor *pColor
const UColor *pColor
)
{
@ -488,7 +488,7 @@ void UIConsole::Draw
)
{
UColor* pCurrColor;
const UColor* pCurrColor;
m_font->setColor(m_foreground_color);
pCurrColor = &m_foreground_color;
@ -945,7 +945,7 @@ void UIFloatingConsole::OnChildSizeChanged
void UIFloatingConsole::AddText
(
const char *text,
UColor *pColor
const UColor *pColor
)
{
@ -1132,7 +1132,7 @@ void UIDMConsole::KeyEnter
void UIDMConsole::AddDMMessageText
(
const char *text,
UColor *pColor
const UColor *pColor
)
{
@ -1465,7 +1465,7 @@ void UIFloatingDMConsole::OnChildSizeChanged
void UIFloatingDMConsole::AddText
(
const char *text,
UColor *pColor
const UColor *pColor
)
{
@ -1477,7 +1477,7 @@ void UIFloatingDMConsole::AddText
void UIFloatingDMConsole::AddDMMessageText
(
const char *text,
UColor *pColor
const UColor *pColor
)
{

View file

@ -30,7 +30,7 @@ public:
int lines;
int begins[ 10 ];
int breaks[ 10 ];
UColor *pColor;
const UColor *pColor;
item();
};
@ -85,7 +85,7 @@ public:
UIConsole();
void setConsoleHandler( consoleHandler_t handler );
void AddText( const char *text, UColor *pColor );
void AddText( const char *text, const UColor *pColor );
void CalcLineBreaks( item& theItem );
void Clear( void );
void FrameInitialized( void ) override;
@ -112,7 +112,7 @@ public:
void FrameInitialized( void ) override;
void OnChildSizeChanged( Event *ev );
void AddText( const char *text, UColor *pColor );
void AddText( const char *text, const UColor *pColor );
void setConsoleHandler( consoleHandler_t handler );
void Clear( void );
void OnClosePressed( Event *ev );
@ -133,7 +133,7 @@ private:
public:
UIDMConsole();
void AddDMMessageText( const char *text, UColor *pColor );
void AddDMMessageText( const char *text, const UColor *pColor );
void Draw( void ) override;
qboolean KeyEvent( int key, unsigned int time ) override;
qboolean GetQuickMessageMode( void );
@ -159,8 +159,8 @@ public:
void FrameInitialized( void ) override;
void OnChildSizeChanged( Event *ev );
void AddText( const char *text, UColor *pColor );
void AddDMMessageText( const char *text, UColor *pColor );
void AddText( const char *text, const UColor *pColor );
void AddDMMessageText( const char *text, const UColor *pColor );
void setConsoleHandler( consoleHandler_t handler );
void Clear( void );
void OnClosePressed( Event *ev );