• Stephan Bergmann's avatar
    Allocate ImpXPolygon::pPointAry as a true Point[] · d5af010a
    Stephan Bergmann yazdı
    ...as the default Point ctor already zero-initializes its members, remvoing the
    need for some memset calls (that cause -Werror=class-memaccess, "clearing an
    object of non-trivial type ‘class Point’" with upcoming GCC 8).  Other such
    problematic memset calls are replaced with std::fill, which appears to produce
    adequate code with recent compilers (looked at GCC 7.2 and 8, Clang 7, at -O2),
    a tight loop of filling the memory with zeroes.
    
    A follow-up commit might want to use unique_ptr or vector for pPointAry.
    
    Change-Id: I566422b2213643ab762f0d87a25e745ec2f35ee4
    Reviewed-on: https://gerrit.libreoffice.org/48488Tested-by: 's avatarJenkins <ci@libreoffice.org>
    Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
    d5af010a
Adı
Son kayıt (commit)
Son güncelleme
..
doc Loading commit data...
inc Loading commit data...
qa Loading commit data...
sdi Loading commit data...
source Loading commit data...
uiconfig/ui Loading commit data...
util Loading commit data...
workben Loading commit data...
AllLangMoTarget_svx.mk Loading commit data...
CppunitTest_svx_dialogs_test.mk Loading commit data...
CppunitTest_svx_unit.mk Loading commit data...
Executable_gengal.mk Loading commit data...
Executable_pixelctl.mk Loading commit data...
JunitTest_svx_unoapi.mk Loading commit data...
Library_svx.mk Loading commit data...
Library_svxcore.mk Loading commit data...
Library_textconversiondlgs.mk Loading commit data...
Makefile Loading commit data...
Module_svx.mk Loading commit data...
Package_gengal.mk Loading commit data...
README Loading commit data...
UIConfig_svx.mk Loading commit data...