modernize use auto

This commit is contained in:
Kurt Hindenburg
2018-10-27 22:05:38 -04:00
parent bae9343903
commit 8f44c36aec
13 changed files with 53 additions and 53 deletions

View File

@@ -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;