mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
kdecore: convert the QString to QByteArray only once in KGlobalPrivate::initFakeComponent()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
65164ccd12
commit
39f0466cac
1 changed files with 5 additions and 5 deletions
|
@ -84,11 +84,11 @@ class KGlobalPrivate
|
|||
*/
|
||||
static KComponentData initFakeComponent()
|
||||
{
|
||||
QString name = QCoreApplication::applicationName();
|
||||
if(name.isEmpty())
|
||||
name = QString::fromLatin1("kde");
|
||||
return KComponentData(name.toLatin1(), name.toLatin1(),
|
||||
KComponentData::SkipMainComponentRegistration);
|
||||
QByteArray name = QCoreApplication::applicationName().toLatin1();
|
||||
if (name.isEmpty()) {
|
||||
name = "kde";
|
||||
}
|
||||
return KComponentData(name, name, KComponentData::SkipMainComponentRegistration);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue