Skip to content

Commit

Permalink
Remove unrequired ;
Browse files Browse the repository at this point in the history
and make clang-tidy a bit more smiley
  • Loading branch information
m-kuhn authored and nyalldawson committed Apr 10, 2023
1 parent ed22eab commit f5843f0
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/plugins/grass/qtermwidget/History.cpp
Expand Up @@ -127,7 +127,7 @@ void HistoryFile::map()
void HistoryFile::unmap()
{
int result = munmap( fileMap , length );
Q_ASSERT( result == 0 ); Q_UNUSED( result );
Q_ASSERT( result == 0 ); Q_UNUSED( result )

fileMap = nullptr;
}
Expand Down Expand Up @@ -523,7 +523,7 @@ void HistoryScrollBlockArray::addCells(const Character a[], int count)

size_t res = m_blockArray.newBlock();
Q_ASSERT(res > 0);
Q_UNUSED( res );
Q_UNUSED( res )

m_lineLengths.insert(m_blockArray.getCurrent(), count);
}
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/grass/qtermwidget/KeyboardTranslator.cpp
Expand Up @@ -120,7 +120,7 @@ const KeyboardTranslator* KeyboardTranslatorManager::findTranslator(const QStrin
bool KeyboardTranslatorManager::saveTranslator(const KeyboardTranslator* translator)
{
qDebug() << "KeyboardTranslatorManager::saveTranslator" << "unimplemented";
Q_UNUSED(translator);
Q_UNUSED(translator)
#if 0
const QString path = KGlobal::dirs()->saveLocation("data","konsole/")+translator->name()
+".keytab";
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/grass/qtermwidget/Pty.cpp
Expand Up @@ -297,7 +297,7 @@ void Pty::dataReceived()

void Pty::lockPty(bool lock)
{
Q_UNUSED(lock);
Q_UNUSED(lock)

// TODO: Support for locking the Pty
//if (lock)
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/grass/qtermwidget/Screen.cpp
Expand Up @@ -515,7 +515,7 @@ void Screen::getImage( Character* dest, int size, int startLine, int endLine ) c
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;
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/grass/qtermwidget/TerminalDisplay.cpp
Expand Up @@ -3331,7 +3331,7 @@ void AutoScrollHandler::timerEvent(QTimerEvent* event)
bool AutoScrollHandler::eventFilter(QObject* watched,QEvent* event)
{
Q_ASSERT( watched == parent() );
Q_UNUSED( watched );
Q_UNUSED( watched )

QMouseEvent* mouseEvent = (QMouseEvent*)event;
switch (event->type())
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/grass/qtermwidget/kpty.cpp
Expand Up @@ -513,7 +513,7 @@ void KPty::login(const char * user, const char * remotehost)
Q_D(KPty);

addToUtmp(d->ttyName.constData(), remotehost, d->masterFd);
Q_UNUSED(user);
Q_UNUSED(user)
#else
# ifdef HAVE_UTMPX
struct utmpx l_struct;
Expand Down

0 comments on commit f5843f0

Please sign in to comment.