Fix semantic errors (wrong variable names etc)

Uncovered by coverity-scan.
This commit is contained in:
Mathias Gumz 2015-01-16 10:38:32 +01:00
parent df996370d0
commit a65e9c686e
2 changed files with 3 additions and 2 deletions

View file

@ -74,6 +74,6 @@ FbRootWindow::FbRootWindow(int screen_num):
m_colormap = XCreateColormap(disp, window(), m_visual, AllocNone); m_colormap = XCreateColormap(disp, window(), m_visual, AllocNone);
} }
if (m_decorationVisual != DefaultVisual(disp, screen_num)) { if (m_decorationVisual != DefaultVisual(disp, screen_num)) {
m_decorationColormap = XCreateColormap(disp, window(), m_visual, AllocNone); m_decorationColormap = XCreateColormap(disp, window(), m_decorationVisual, AllocNone);
} }
} }

View file

@ -247,6 +247,7 @@ string escapeRememberChars(const string& str) {
escaped_str += '\\'; escaped_str += '\\';
default: default:
escaped_str += *i; escaped_str += *i;
break;
} }
} }
@ -982,7 +983,7 @@ void Remember::save() {
case (WindowState::DECOR_BORDER): case (WindowState::DECOR_BORDER):
apps_file << " [Deco]\t{BORDER}" << endl; apps_file << " [Deco]\t{BORDER}" << endl;
break; break;
case (WindowState::DECORM_TAB): case (WindowState::DECOR_TAB):
apps_file << " [Deco]\t{TAB}" << endl; apps_file << " [Deco]\t{TAB}" << endl;
break; break;
default: default: