[MSPAINT] Define enum TOOLTYPE and use it (#4197)

Improve code quality and debuggability. CORE-17931
This commit is contained in:
Katayama Hirofumi MZ 2021-12-27 23:23:32 +09:00 committed by GitHub
parent 90c3f89bb2
commit e9330371ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 90 additions and 39 deletions

View file

@ -57,12 +57,12 @@ void ToolsModel::SetBrushStyle(int nBrushStyle)
NotifyToolSettingsChanged();
}
int ToolsModel::GetActiveTool() const
TOOLTYPE ToolsModel::GetActiveTool() const
{
return m_activeTool;
}
void ToolsModel::SetActiveTool(int nActiveTool)
void ToolsModel::SetActiveTool(TOOLTYPE nActiveTool)
{
m_activeTool = nActiveTool;
NotifyToolChanged();