142 |
|
// Define a byte array (rewrite if it's a bottleneck) |
143 |
|
struct ByteArray : public vector<uint8> { |
144 |
|
void resize(int size) { reserve(size); vector<uint8>::resize(size); } |
145 |
< |
uint8 *data() { return &at(0); } |
145 |
> |
uint8 *data() { return &(*this)[0]; } |
146 |
|
}; |
147 |
|
|
148 |
|
// Clipboard data for requestors |
556 |
|
// Change requestor property |
557 |
|
XChangeProperty(x_display, req->requestor, req->property, |
558 |
|
xa_targets, 32, |
559 |
< |
PropModeReplace, (uint8 *)&targets.at(0), targets.size()); |
559 |
> |
PropModeReplace, (uint8 *)&targets[0], targets.size()); |
560 |
|
|
561 |
|
return true; |
562 |
|
} |