diff --git a/SheepShaver/src/Unix/clip_unix.cpp b/SheepShaver/src/Unix/clip_unix.cpp index 3c2d3ab6..d9842d97 100644 --- a/SheepShaver/src/Unix/clip_unix.cpp +++ b/SheepShaver/src/Unix/clip_unix.cpp @@ -142,7 +142,7 @@ static Atom xa_atom_pair; // Define a byte array (rewrite if it's a bottleneck) struct ByteArray : public vector { void resize(int size) { reserve(size); vector::resize(size); } - uint8 *data() { return &at(0); } + uint8 *data() { return &(*this)[0]; } }; // Clipboard data for requestors @@ -556,7 +556,7 @@ static bool handle_selection_TARGETS(XSelectionRequestEvent *req) // Change requestor property XChangeProperty(x_display, req->requestor, req->property, xa_targets, 32, - PropModeReplace, (uint8 *)&targets.at(0), targets.size()); + PropModeReplace, (uint8 *)&targets[0], targets.size()); return true; }