refactor: fix clang-tidy auto*, const&, and curly braces (#5083)
This commit is contained in:
@@ -143,11 +143,15 @@ const std::optional<ImagePtr> &ModerationAction::getImage() const
|
||||
if (this->imageToLoad_ != 0)
|
||||
{
|
||||
if (this->imageToLoad_ == 1)
|
||||
{
|
||||
this->image_ =
|
||||
Image::fromResourcePixmap(getResources().buttons.ban);
|
||||
}
|
||||
else if (this->imageToLoad_ == 2)
|
||||
{
|
||||
this->image_ =
|
||||
Image::fromResourcePixmap(getResources().buttons.trashCan);
|
||||
}
|
||||
}
|
||||
|
||||
return this->image_;
|
||||
|
||||
Reference in New Issue
Block a user