add some returns so the compiler doesnt get confused
This commit is contained in:
parent
235d9e4c40
commit
66119f751d
1 changed files with 2 additions and 2 deletions
|
@ -324,7 +324,7 @@ void XAtom::setValue(Window win, Atoms atom, StringType type,
|
|||
switch (type) {
|
||||
case ansi: t = _atoms[string]; break;
|
||||
case utf8: t = _atoms[utf8_string]; break;
|
||||
default: assert(False); // unhandled StringType
|
||||
default: assert(False); return; // unhandled StringType
|
||||
}
|
||||
|
||||
std::string value;
|
||||
|
@ -454,7 +454,7 @@ bool XAtom::getValue(Window win, Atoms atom, StringType type,
|
|||
switch (type) {
|
||||
case ansi: t = _atoms[string]; break;
|
||||
case utf8: t = _atoms[utf8_string]; break;
|
||||
default: assert(False); // unhandled StringType
|
||||
default: assert(False); return // unhandled StringType
|
||||
}
|
||||
|
||||
unsigned char *value;
|
||||
|
|
Loading…
Reference in a new issue