I'm just curious why this code in cefclient_gtk.cpp
// Set the hidden property state value.
scoped_ptr<Atom[]> data(new Atom[1]);
data[0] = atoms[2];
XChangeProperty(xdisplay,
xwindow,
atoms[0], // name
atoms[1], // type
32, // size in bits of items in 'value'
PropModeReplace,
reinterpret_cast<const unsigned char*>(data.get()),
1); // num items
Cannot simply be
XChangeProperty(xdisplay, xwindow, atoms[0], atoms[1], 32,
PropModeReplace,
reinterpret_cast<const unsigned char*>(&(atoms[2])), 1);
It seems like the scoped_ptr usage is unnecessary. Is there something I am missing?