From b21cf8b33520e44611657e2876131b67dc0472d6 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 10 Jul 2002 17:49:05 +0000 Subject: [PATCH] add another return, and return a value for a non-void funtion. --- src/XAtom.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;