kdontchangethehostname: home does not have to be a member

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
Ivailo Monev 2016-12-10 03:29:37 +00:00
parent c94db85beb
commit cc544eb6ef

View file

@ -53,7 +53,6 @@ protected:
QString oldName;
QString newName;
QString display;
QByteArray home;
};
KHostName::KHostName()
@ -66,7 +65,7 @@ KHostName::KHostName()
if (oldName == newName)
exit(0);
home = qgetenv("HOME");
const QByteArray home = qgetenv("HOME");
if (home.isEmpty())
{
fprintf(stderr, "%s", i18n("Error: HOME environment variable not set.\n").toLocal8Bit().data());