Clean up constructors in pdf_accessibility_shared.h.
- Replace PdfAccessibilityLinkInfo's copy ctor with a move ctor. This implicitly deletes the copy ctor. Without a copy ctor, all the usage of the struct have to use move semantics correctly and cannot copy anymore. - Mark the PdfAccessibilityLinkInfo ctor that takes a single PP_PrivateAccessibilityLinkInfo as explicit. - Change the PP_PrivateAccessibilityLinkInfo ctor to use an initializer list. - Reorder the ctors so the move ctor and dtor are at the end. Make pdf_accessibility_shared.cc match the header. Then do the same set of changes for PdfAccessibilityImageInfo. Bug: 981448 Change-Id: Ie3daca03b4226748daed7d39c31444da2a9de47c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1794248 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by:Raymes Khoury <raymes@chromium.org> Cr-Commit-Position: refs/heads/master@{#697137}
Showing
Please register or sign in to comment