-void XAtom::setValue(Window win, Atom atom, std::string &value) {
- setValue(win, atom, XA_STRING, static_cast<unsigned char*>(value.c_str()),
+void XAtom::setStringValue(Window win, Atom atom,
+ const std::string &value) const {
+ setValue(win, atom, XA_STRING,
+ const_cast<unsigned char*>
+ (reinterpret_cast<const unsigned char*>(value.c_str())),