Improve const correctness

This commit is contained in:
lupoDharkael
2017-05-21 20:33:12 +02:00
parent 087cb0a6f8
commit 89b9d7026f
7 changed files with 17 additions and 18 deletions

View File

@@ -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()) {