From abec252042c903c7311f9c6428a905249afa7f53 Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Mon, 4 Apr 2022 23:57:29 +0100 Subject: [PATCH] Rename member variables to convention --- src/sm.cpp | 10 +++++----- src/sm.h | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/sm.cpp b/src/sm.cpp index 9704ac7329..0af896cb48 100644 --- a/src/sm.cpp +++ b/src/sm.cpp @@ -117,15 +117,15 @@ void SessionManager::storeSession(const QString &sessionName, SMSavePhase phase) // it would be much simpler to save these values to the config file, // but both Qt and KDE treat phase1 and phase2 separately, // which results in different sessionkey and different config file :( - session_active_client = active_client; - session_desktop = VirtualDesktopManager::self()->current(); + m_sessionActiveClient = active_client; + m_sessionDesktop = VirtualDesktopManager::self()->current(); } else if (phase == SMSavePhase2) { cg.writeEntry("count", count); - cg.writeEntry("active", session_active_client); - cg.writeEntry("desktop", session_desktop); + cg.writeEntry("active", m_sessionActiveClient); + cg.writeEntry("desktop", m_sessionDesktop); } else { // SMSavePhase2Full cg.writeEntry("count", count); - cg.writeEntry("active", session_active_client); + cg.writeEntry("active", m_sessionActiveClient); cg.writeEntry("desktop", VirtualDesktopManager::self()->current()); } config->sync(); // it previously did some "revert to defaults" stuff for phase1 I think diff --git a/src/sm.h b/src/sm.h index e2c5adb61c..1dbb95d1c3 100644 --- a/src/sm.h +++ b/src/sm.h @@ -70,8 +70,8 @@ private: SessionState m_sessionState = SessionState::Normal; - int session_active_client; - int session_desktop; + int m_sessionActiveClient; + int m_sessionDesktop; QList session; };