all repos — openbox @ b21cf8b33520e44611657e2876131b67dc0472d6

openbox fork - make it a bit more like ryudo

add another return, and return a value for a non-void funtion.
Dana Jansens danakj@orodu.net
commit

b21cf8b33520e44611657e2876131b67dc0472d6

parent

25f3456b5db01c1383d7778382ece0e73bf66d55

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M src/XAtom.ccsrc/XAtom.cc

@@ -304,7 +304,7 @@ Atom t;

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<unsigned char *>(const_cast<char *>(value.c_str())),

@@ -454,7 +454,7 @@ Atom t;

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;