Make some member functions const

This commit is contained in:
Luís Pereira
2021-03-04 19:47:56 +00:00
committed by Chih-Hsuan Yen
parent 4b43c8fa77
commit 4dd62f8a87
8 changed files with 14 additions and 14 deletions
+3 -3
View File
@@ -143,7 +143,7 @@ bool Session::isRunning() const
return _shellProcess->state() == QProcess::Running;
}
void Session::setCodec(QTextCodec * codec)
void Session::setCodec(QTextCodec * codec) const
{
emulation()->setCodec(codec);
}
@@ -1034,7 +1034,7 @@ void SessionGroup::setMasterStatus(Session * session, bool master)
}
}
void SessionGroup::connectPair(Session * master , Session * other)
void SessionGroup::connectPair(Session * master , Session * other) const
{
// qDebug() << k_funcinfo;
@@ -1045,7 +1045,7 @@ void SessionGroup::connectPair(Session * master , Session * other)
SLOT(sendString(const char *,int)) );
}
}
void SessionGroup::disconnectPair(Session * master , Session * other)
void SessionGroup::disconnectPair(Session * master , Session * other) const
{
// qDebug() << k_funcinfo;