mirror of
https://github.com/fergalmoran/flameshot.git
synced 2026-04-01 21:11:11 +00:00
Improve const correctness
This commit is contained in:
@@ -296,7 +296,7 @@ QVector<QPoint> ButtonHandler::getVPoints(
|
||||
return res;
|
||||
}
|
||||
// setButtons redefines the buttons of the button handler
|
||||
void ButtonHandler::setButtons(QVector<Button *> v) {
|
||||
void ButtonHandler::setButtons(const QVector<Button *> v) {
|
||||
for (Button *b: m_vectorButtons) delete(b);
|
||||
m_vectorButtons = v;
|
||||
if (!v.isEmpty()) {
|
||||
|
||||
Reference in New Issue
Block a user