Skip to content

Commit

Permalink
Fix clang-tidy suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
Gasparoken committed Sep 19, 2024
1 parent d7b5408 commit 7dea034
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/ui/context_bar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1630,7 +1630,7 @@ class ContextBar::SymmetryField : public ButtonSet {
doc->notifyGeneralUpdate();
}
else if (at(4)->isSelected()) {
auto item = at(4);
auto* item = at(4);

gfx::Rect bounds = item->bounds();
item->setSelected(false);
Expand Down
2 changes: 1 addition & 1 deletion src/doc/brush.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ static void algo_hline(int x1, int y, int x2, void *data)

void Brush::resetSymmetries()
{
if (m_symmetryImages.size() == 0) {
if (m_symmetryImages.empty()) {
for (int i=0; i<8; i++) {
m_symmetryImages.push_back(ImageRef());
m_symmetryMasks.push_back(ImageRef());
Expand Down

0 comments on commit 7dea034

Please sign in to comment.