diff --git a/examples/C/qt/monitor-nm-running.cpp b/examples/C/qt/monitor-nm-running.cpp index 861f251e0..e955dd421 100644 --- a/examples/C/qt/monitor-nm-running.cpp +++ b/examples/C/qt/monitor-nm-running.cpp @@ -51,13 +51,13 @@ class NMWatcher: public QObject { void NMWatcher::serviceRegistered(const QString& name) { - std::cout << "Name '" << name.toStdString() << "' registered" + std::cout << "Name '" << name.constData() << "' registered" << " => NM is running" << std::endl; } void NMWatcher::serviceUnregistered(const QString& name) { - std::cout << "Name '" << name.toStdString() << "' unregistered" + std::cout << "Name '" << name.constData() << "' unregistered" << " => NM is not running" << std::endl; }