mirror of
https://github.com/KDE/konsole.git
synced 2026-05-02 03:36:34 -04:00
/s/streams/printf/ for --list-profiles and --list-profile-properties
For these 2 usages, use printf instead of streams
This commit is contained in:
@@ -20,9 +20,6 @@
|
||||
// Own
|
||||
#include "Application.h"
|
||||
|
||||
// std
|
||||
#include <iostream>
|
||||
|
||||
// Qt
|
||||
#include <QtCore/QHashIterator>
|
||||
#include <QtCore/QFileInfo>
|
||||
@@ -330,7 +327,7 @@ void Application::listAvailableProfiles()
|
||||
|
||||
foreach ( const QString& path, paths) {
|
||||
QFileInfo info(path);
|
||||
std::cout << info.completeBaseName().toLocal8Bit().data() << std::endl;
|
||||
printf("%s\n", info.completeBaseName().toLocal8Bit().constData());
|
||||
}
|
||||
|
||||
quit();
|
||||
@@ -342,7 +339,7 @@ void Application::listProfilePropertyInfo()
|
||||
const QStringList names = tempProfile->propertiesInfoList();
|
||||
|
||||
foreach ( const QString& name, names) {
|
||||
std::cout << name.toLocal8Bit().data() << std::endl;
|
||||
printf("%s\n", name.toLocal8Bit().constData());
|
||||
}
|
||||
|
||||
quit();
|
||||
|
||||
Reference in New Issue
Block a user