File tree 3 files changed +4
-4
lines changed
plugins/session/autostart
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ void Daemon::start()
125
125
return ;
126
126
127
127
// Start all modules
128
- for (auto *module : qAsConst (m_modules)) {
128
+ for (auto *module : std::as_const (m_modules)) {
129
129
auto name = m_pluginRegistry->getNameForInstance (module);
130
130
if (!module) {
131
131
qCWarning (lcDaemon, " Ignoring invalid session module \" %s\" " ,
@@ -153,7 +153,7 @@ void Daemon::shutdown()
153
153
154
154
// Stop modules
155
155
std::reverse (m_loadedModules.begin (), m_loadedModules.end ());
156
- for (auto *module : qAsConst (m_loadedModules)) {
156
+ for (auto *module : std::as_const (m_loadedModules)) {
157
157
auto *instance = dynamic_cast <QObject *>(module);
158
158
const auto name = m_pluginRegistry->getNameForInstance (instance);
159
159
Original file line number Diff line number Diff line change @@ -286,7 +286,7 @@ bool LogindPrivate::getUserSession(DBusUserSession &session) const
286
286
// existing session for the user.
287
287
bool found = false ;
288
288
DBusUserSessionVector sessions = qdbus_cast<DBusUserSessionVector>(reply.value ().value <QDBusArgument>());
289
- for (const auto &curSession : qAsConst (sessions)) {
289
+ for (const auto &curSession : std::as_const (sessions)) {
290
290
const QString type = getSessionType (curSession.id , curSession.objectPath .path ());
291
291
const QString state = getSessionState (curSession.id , curSession.objectPath .path ());
292
292
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ bool AutostartPlugin::stop()
79
79
{
80
80
std::reverse (m_desktopFiles.begin (), m_desktopFiles.end ());
81
81
82
- for (const auto &fileName : qAsConst (m_desktopFiles)) {
82
+ for (const auto &fileName : std::as_const (m_desktopFiles)) {
83
83
qCDebug (lcSession) << " Terminate autostart entry from" << fileName;
84
84
terminateDesktopFile (fileName);
85
85
}
You can’t perform that action at this time.
0 commit comments