mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 10:52:49 +00:00
kdecore: const-ify variable in readEnvPath() function
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
23330a4058
commit
c332784ea6
1 changed files with 1 additions and 2 deletions
|
@ -68,8 +68,7 @@ static const QChar s_pathseparatorchar = QChar::fromLatin1(KPATH_SEPARATOR);
|
|||
|
||||
static QString readEnvPath(const char *env)
|
||||
{
|
||||
QByteArray c_path;
|
||||
c_path = qgetenv(env);
|
||||
const QByteArray c_path = qgetenv(env);
|
||||
if (c_path.isEmpty())
|
||||
return QString();
|
||||
return QDir::fromNativeSeparators(QFile::decodeName(c_path));
|
||||
|
|
Loading…
Add table
Reference in a new issue