Use std::fill instead of memset
...to avoid GCC 8 -Werror=class-memaccess ("clearing an object of non-trivial type ‘struct SwSrchChrAttr’"). Similar to <https://gerrit.libreoffice.org/#/c/48488/> "Allocate ImpXPolygon::pPointAry as a true Point[]", std::fill appears to produce adequate code here with recent compilers. Change-Id: I3ee0bc15e852b80e0429c8e0a4bc48424af9c5a3 Reviewed-on: https://gerrit.libreoffice.org/48518Tested-by:Jenkins <ci@libreoffice.org> Reviewed-by:
Stephan Bergmann <sbergman@redhat.com>
Showing
Please
register
or
sign in
to comment