From a65e9c686ea8b9c029cb77d3c109f05a36bfe042 Mon Sep 17 00:00:00 2001 From: Mathias Gumz Date: Fri, 16 Jan 2015 10:38:32 +0100 Subject: Fix semantic errors (wrong variable names etc) Uncovered by coverity-scan. --- src/FbRootWindow.cc | 2 +- src/Remember.cc | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/FbRootWindow.cc b/src/FbRootWindow.cc index 0cd730e..d17d56f 100644 --- a/src/FbRootWindow.cc +++ b/src/FbRootWindow.cc @@ -74,6 +74,6 @@ FbRootWindow::FbRootWindow(int screen_num): m_colormap = XCreateColormap(disp, window(), m_visual, AllocNone); } if (m_decorationVisual != DefaultVisual(disp, screen_num)) { - m_decorationColormap = XCreateColormap(disp, window(), m_visual, AllocNone); + m_decorationColormap = XCreateColormap(disp, window(), m_decorationVisual, AllocNone); } } diff --git a/src/Remember.cc b/src/Remember.cc index acbbddf..77cc889 100644 --- a/src/Remember.cc +++ b/src/Remember.cc @@ -247,6 +247,7 @@ string escapeRememberChars(const string& str) { escaped_str += '\\'; default: escaped_str += *i; + break; } } @@ -982,7 +983,7 @@ void Remember::save() { case (WindowState::DECOR_BORDER): apps_file << " [Deco]\t{BORDER}" << endl; break; - case (WindowState::DECORM_TAB): + case (WindowState::DECOR_TAB): apps_file << " [Deco]\t{TAB}" << endl; break; default: -- cgit v0.11.2