X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2FXAtom.cc;h=488c051109c04ceb24ee8b266a4f261326ac54d1;hb=9e99a9a1e21b7b7214b17a759e58efd00b254551;hp=a98c366fc79cc9e15e1fd3db951d2cc6504d7221;hpb=9d2f88e05a392ecf97d3d312806ff701c5514f14;p=chaz%2Fopenbox diff --git a/src/XAtom.cc b/src/XAtom.cc index a98c366f..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())), @@ -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 False; // unhandled StringType } unsigned char *value;