mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 10:22:49 +00:00
kiconfinder: keep references to QByteArray objects
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
eee1429e54
commit
7a2e7e8b73
1 changed files with 4 additions and 2 deletions
|
@ -86,9 +86,11 @@ int main(int argc, char *argv[])
|
||||||
foreach (const QString &iconName, iconArgs) {
|
foreach (const QString &iconName, iconArgs) {
|
||||||
const QString icon = KIconLoader::global()->iconPath(iconName, iconGroup, true);
|
const QString icon = KIconLoader::global()->iconPath(iconName, iconGroup, true);
|
||||||
if (!icon.isEmpty()) {
|
if (!icon.isEmpty()) {
|
||||||
printf("%s\n", icon.toLatin1().constData());
|
const QByteArray iconBytes = icon.toLatin1();
|
||||||
|
printf("%s\n", iconBytes.constData());
|
||||||
} else {
|
} else {
|
||||||
std::cerr << "Icon '" << iconName.toLatin1().constData() << "' not found" << std::endl;
|
const QByteArray iconNameBytes = iconName.toLatin1();
|
||||||
|
std::cerr << "Icon '" << iconNameBytes.constData() << "' not found" << std::endl;
|
||||||
rv = 1;
|
rv = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue