diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-12-18 21:51:49 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-12-19 08:36:15 +0100 |
commit | 32d32b1419655c5fe80d0b4a76c9b6b3118f323f (patch) | |
tree | 99d5f49aa904d8677060816f372e21b031ef945b /hwpfilter | |
parent | Refactor bin/run (diff) | |
download | core-32d32b1419655c5fe80d0b4a76c9b6b3118f323f.tar.gz core-32d32b1419655c5fe80d0b4a76c9b6b3118f323f.zip |
-Werror=class-memaccess (trunk towards GCC 9)
..."‘void* memset(void*, int, size_t)’ clearing an object of type ‘struct
HWPDrawingObject’ with no trivial copy-assignment; use value-initialization
instead" after 96c85e7d107ad0d79295349f01cd8578ce7daeba "loplugin:useuniqueptr
in hwpfilter"
Change-Id: Iee2b0ba2ec57233a311c88cb904af2bae71286d0
Reviewed-on: https://gerrit.libreoffice.org/65375
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'hwpfilter')
-rw-r--r-- | hwpfilter/source/drawing.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/hwpfilter/source/drawing.h b/hwpfilter/source/drawing.h index 4a03ce47e18e..7e986455f935 100644 --- a/hwpfilter/source/drawing.h +++ b/hwpfilter/source/drawing.h @@ -677,9 +677,11 @@ int cmd, void * /*argp*/, int /*argv*/) } -HWPDrawingObject::HWPDrawingObject() +HWPDrawingObject::HWPDrawingObject(): + type(0), offset{0, 0}, offset2{0, 0}, extent{0, 0}, vrect{0, 0, 0, 0} { - memset(this, 0, sizeof(HWPDrawingObject)); + memset(&property, 0, sizeof property); + memset(&u, 0, sizeof u); index = ++count; } |