Commit ab0636de authored by Kurt Hindenburg's avatar Kurt Hindenburg
Browse files

Q_UNUSED() does not need semi-colon at end

parent f476e936
......@@ -404,7 +404,7 @@ const QString EditProfileDialog::currentColorSchemeName() const
void EditProfileDialog::preparePage(KPageWidgetItem *current, KPageWidgetItem *before)
{
Q_UNUSED(before);
Q_UNUSED(before)
Q_ASSERT(current);
Q_ASSERT(_pages.contains(current));
......
......@@ -571,7 +571,7 @@ static inline bool drawDiagonalLineCharacter(QPainter &paint, int x, int y, int
static inline bool drawBlockCharacter(QPainter &paint, int x, int y, int w, int h, uchar code,
bool bold)
{
Q_UNUSED(bold);
Q_UNUSED(bold)
const QColor color = paint.pen().color();
......
......@@ -277,7 +277,7 @@ void MainWindow::activeViewChanged(SessionController *controller)
void MainWindow::activeViewTitleChanged(ViewProperties *properties)
{
Q_UNUSED(properties);
Q_UNUSED(properties)
updateWindowCaption();
}
......
......@@ -923,7 +923,7 @@ private:
bool readArguments(int pid) override
{
Q_UNUSED(pid);
Q_UNUSED(pid)
return false;
}
};
......
......@@ -158,7 +158,7 @@ void Pty::setUtf8Mode(bool enable)
}
}
#else
Q_UNUSED(enable);
Q_UNUSED(enable)
#endif
}
......
......@@ -502,7 +502,7 @@ void Screen::getImage(Character* dest, int size, int startLine, int endLine) con
const int mergedLines = endLine - startLine + 1;
Q_ASSERT(size >= mergedLines * _columns);
Q_UNUSED(size);
Q_UNUSED(size)
const int linesInHistoryBuffer = qBound(0, _history->getLines() - startLine, mergedLines);
const int linesInScreenBuffer = mergedLines - linesInHistoryBuffer;
......
......@@ -3927,7 +3927,7 @@ void AutoScrollHandler::timerEvent(QTimerEvent* event)
bool AutoScrollHandler::eventFilter(QObject* watched, QEvent* event)
{
Q_ASSERT(watched == parent());
Q_UNUSED(watched);
Q_UNUSED(watched)
switch (event->type()) {
case QEvent::MouseMove: {
......
......@@ -162,7 +162,7 @@ void TerminalHeaderBar::mousePressEvent(QMouseEvent* ev)
void TerminalHeaderBar::mouseReleaseEvent(QMouseEvent* ev)
{
Q_UNUSED(ev);
Q_UNUSED(ev)
}
void TerminalHeaderBar::terminalFocusIn()
......
......@@ -403,7 +403,7 @@ void TabbedViewContainer::viewDestroyed(QObject *view)
void TabbedViewContainer::forgetView(ViewSplitter *view)
{
Q_UNUSED(view);
Q_UNUSED(view)
if (count() == 0) {
emit empty(this);
}
......
......@@ -760,7 +760,7 @@ ViewManager::NavigationMethod ViewManager::navigationMethod() const
void ViewManager::containerViewsChanged(TabbedViewContainer *container)
{
Q_UNUSED(container);
Q_UNUSED(container)
// TODO: Verify that this is right.
emit viewPropertiesChanged(viewProperties());
}
......
......@@ -315,7 +315,7 @@ void Konsole::ViewSplitter::dragMoveEvent(QDragMoveEvent* ev)
void Konsole::ViewSplitter::dragLeaveEvent(QDragLeaveEvent* event)
{
Q_UNUSED(event);
Q_UNUSED(event)
if (currentDragTarget != nullptr) {
currentDragTarget->hideDragTarget();
currentDragTarget = nullptr;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment