diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-11-11 10:03:11 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-11-11 10:03:11 +0000 |
| commit | fb0dd6cf9a839f9990ac877bf1b3d469d883b463 (patch) | |
| tree | 26e92f3701e9164e7cba3ddb2106d8bb9402b7b1 /otk/property.cc | |
| parent | 590f7f58a6d4ba9214d3bd2d42ba2c353b492d4e (diff) | |
some small cleanups
make style not take a screen separate from the image control
make style::load() take a const ref
Diffstat (limited to 'otk/property.cc')
| -rw-r--r-- | otk/property.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/otk/property.cc b/otk/property.cc index 359bf8bd..9a0efe5b 100644 --- a/otk/property.cc +++ b/otk/property.cc @@ -29,9 +29,7 @@ OBProperty::OBProperty() _atoms[Atom_String] = XA_STRING; _atoms[Atom_Utf8] = create("UTF8_STRING"); -#ifdef HAVE_GETPID _atoms[openbox_pid] = create("_OPENBOX_PID"); -#endif // HAVE_GETPID _atoms[wm_colormap_windows] = create("WM_COLORMAP_WINDOWS"); _atoms[wm_protocols] = create("WM_PROTOCOLS"); @@ -162,7 +160,9 @@ OBProperty::~OBProperty() */ Atom OBProperty::create(const char *name) const { - return XInternAtom(OBDisplay::display, name, False); + Atom a = XInternAtom(OBDisplay::display, name, False); + assert(a); + return a; } |
