forked from qt-creator/qt-creator
Replace QString::fromLocal8Bit("") calls
Calling fromLocal8Bit() for literals is wrong, since that depends ont the user's environment. We use latin1 strings exclusively in Qt. Change-Id: I0cd0986787ea630425773672d3a892fbd0f0a77a Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -218,7 +218,7 @@ void SshChannelManager::removeChannel(ChannelIterator it)
|
||||
const int removeCount = m_sessions.remove(it.value());
|
||||
if (removeCount != 1) {
|
||||
throw SshClientException(SshInternalError,
|
||||
QString::fromLocal8Bit("Internal error: Unexpected session count %1 for channel.")
|
||||
QString::fromLatin1("Internal error: Unexpected session count %1 for channel.")
|
||||
.arg(removeCount));
|
||||
}
|
||||
m_channels.erase(it);
|
||||
|
||||
Reference in New Issue
Block a user