[MSPAINT] Add const to some ImageModel methods

CORE-17931
This commit is contained in:
Katayama Hirofumi MZ 2021-12-28 09:49:36 +09:00
parent 4331b47c50
commit ba117350eb
2 changed files with 10 additions and 10 deletions

View file

@ -164,17 +164,17 @@ void ImageModel::SaveImage(LPTSTR lpFileName)
SaveDIBToFile(hBms[currInd], lpFileName, hDrawingDC);
}
BOOL ImageModel::IsImageSaved()
BOOL ImageModel::IsImageSaved() const
{
return imageSaved;
}
BOOL ImageModel::HasUndoSteps()
BOOL ImageModel::HasUndoSteps() const
{
return undoSteps > 0;
}
BOOL ImageModel::HasRedoSteps()
BOOL ImageModel::HasRedoSteps() const
{
return redoSteps > 0;
}
@ -191,12 +191,12 @@ void ImageModel::StretchSkew(int nStretchPercentX, int nStretchPercentY, int nSk
NotifyImageChanged();
}
int ImageModel::GetWidth()
int ImageModel::GetWidth() const
{
return GetDIBWidth(hBms[currInd]);
}
int ImageModel::GetHeight()
int ImageModel::GetHeight() const
{
return GetDIBHeight(hBms[currInd]);
}