improve semantics

pull/16/head
Michail Vourlakos 5 years ago
parent f8dd3d5c40
commit 33fdea478a

@ -421,7 +421,7 @@ void LastActiveWindow::setWinId(QVariant winId)
if (!m_history.contains(winId)) { if (!m_history.contains(winId)) {
m_history.prepend(winId); m_history.prepend(winId);
clearHistory(); cleanHistory();
} else { } else {
int p = m_history.indexOf(winId); int p = m_history.indexOf(winId);
//! move to start //! move to start
@ -512,7 +512,7 @@ void LastActiveWindow::windowChanged(const WindowId &wid)
} }
m_history.removeAll(wid); m_history.removeAll(wid);
clearHistory(); cleanHistory();
} }
if (m_history.count() > 0) { if (m_history.count() > 0) {
@ -557,7 +557,7 @@ void LastActiveWindow::windowRemoved(const WindowId &wid)
} }
} }
void LastActiveWindow::clearHistory() void LastActiveWindow::cleanHistory()
{ {
if (m_history.count() > MAXHISTORY) { if (m_history.count() > MAXHISTORY) {
int size = m_history.count(); int size = m_history.count();

@ -203,7 +203,7 @@ private:
void setWinId(QVariant winId); void setWinId(QVariant winId);
void clearHistory(); void cleanHistory();
void updateColorScheme(); void updateColorScheme();
private: private:

Loading…
Cancel
Save