From: Dana Jansens Date: Wed, 10 Jul 2002 17:49:05 +0000 (+0000) Subject: add another return, and return a value for a non-void funtion. X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=b21cf8b33520e44611657e2876131b67dc0472d6;p=chaz%2Fopenbox add another return, and return a value for a non-void funtion. --- diff --git a/src/XAtom.cc b/src/XAtom.cc index 2f560995..488c0511 100644 --- a/src/XAtom.cc +++ b/src/XAtom.cc @@ -304,7 +304,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 } setValue(win, _atoms[atom], t, reinterpret_cast(const_cast(value.c_str())), @@ -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); return; // unhandled StringType + default: assert(False); return False; // unhandled StringType } unsigned char *value;