mojo: update examples to follow styleguide
Remove usage of DISALLOW_COPY_AND_ASSIGN from mojo documentation. styleguide/c++/c++-dos-and-donts.md: 'DISALLOW_COPY_AND_ASSIGN` is deprecated. For a non-copyable/movable type, delete the copy operations (the move operations will be implicitly deleted); otherwise, declare either copy operations, move operations, or both (a non-declared pair will be implicitly deleted). Always declare or delete both construction and assignment, not just one (which can introduce subtle bugs). Change-Id: Iad752e093643a0f964056c1d4b6714cea724728f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2398069Reviewed-by:Kentaro Hara <haraken@chromium.org> Commit-Queue: Johann Koenig <johannkoenig@google.com> Cr-Commit-Position: refs/heads/master@{#805164}
Showing
Please register or sign in to comment