mirror of
https://github.com/KDE/konsole.git
synced 2026-06-11 07:26:10 -04:00
modernize use auto
This commit is contained in:
@@ -430,7 +430,7 @@ protected:
|
||||
char path_buffer[MAXPATHLEN + 1];
|
||||
path_buffer[MAXPATHLEN] = 0;
|
||||
QByteArray procCwd = QFile::encodeName(QStringLiteral("/proc/%1/cwd").arg(pid));
|
||||
const int length = static_cast<int>(readlink(procCwd.constData(), path_buffer, MAXPATHLEN));
|
||||
const auto length = static_cast<int>(readlink(procCwd.constData(), path_buffer, MAXPATHLEN));
|
||||
if (length == -1) {
|
||||
setError(UnknownError);
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user