mirror of
https://github.com/reactos/reactos.git
synced 2026-06-01 17:00:51 +08:00
[MSPAINT] Add const to some PaletteModel methods
CORE-17931
This commit is contained in:
@@ -48,7 +48,7 @@ void PaletteModel::SelectPalette(int nPalette)
|
||||
NotifyPaletteChanged();
|
||||
}
|
||||
|
||||
int PaletteModel::GetColor(int nIndex)
|
||||
int PaletteModel::GetColor(int nIndex) const
|
||||
{
|
||||
if (nIndex < 28)
|
||||
return m_colors[nIndex];
|
||||
@@ -65,7 +65,7 @@ void PaletteModel::SetColor(int nIndex, int newColor)
|
||||
}
|
||||
}
|
||||
|
||||
int PaletteModel::GetFgColor()
|
||||
int PaletteModel::GetFgColor() const
|
||||
{
|
||||
return m_fgColor;
|
||||
}
|
||||
@@ -76,7 +76,7 @@ void PaletteModel::SetFgColor(int newColor)
|
||||
NotifyColorChanged();
|
||||
}
|
||||
|
||||
int PaletteModel::GetBgColor()
|
||||
int PaletteModel::GetBgColor() const
|
||||
{
|
||||
return m_bgColor;
|
||||
}
|
||||
|
||||
@@ -25,10 +25,10 @@ public:
|
||||
PaletteModel();
|
||||
int SelectedPalette();
|
||||
void SelectPalette(int nPalette);
|
||||
int GetColor(int nIndex);
|
||||
int GetColor(int nIndex) const;
|
||||
void SetColor(int nIndex, int newColor);
|
||||
int GetFgColor();
|
||||
int GetFgColor() const;
|
||||
void SetFgColor(int newColor);
|
||||
int GetBgColor();
|
||||
int GetBgColor() const;
|
||||
void SetBgColor(int newColor);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user