summaryrefslogtreecommitdiff
path: root/hwpfilter/source/hfont.cxx
AgeCommit message (Collapse)Author
2019-01-21Avoid -Werror=stringop-truncationStephan Bergmann
...as emitted by at least GCC 8.2 with --enable-optimized. These are not actually problems, as in both cases strncpy(p,...,N-1) is used to copy a string into an area p of length N that has initially been zero-initialized, so p[N-1] will already contain NUL. But add the (redundant) p[N-1]=NUL just in case, and to silence GCC (where the documentation explicitly recommends this additional write as a way to silence the warning). Unfortunately, in hstyle.cxx at least GCC 8.2 with --enable-optimized would still emit the warning, even though it uses the recommended way of handling it, so needs to be silenced with a #pragma. Change-Id: Ie41f420c732c2bfb699903ebd21ce1a89dd2b236 Reviewed-on: https://gerrit.libreoffice.org/66620 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2018-02-17loplugin:useuniqueptr in HWPFontNoel Grandin
Change-Id: Idd20e180fdd215028cf972e7ed97b37b7b9bed55 Reviewed-on: https://gerrit.libreoffice.org/49872 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-01-21coverity#1349757 Unchecked return valueCaolán McNamara
Change-Id: Ia2286fa9e1c351c4e4c9579b31b94ce1eac3b841
2016-01-18loplugin: unused return valuesNoel Grandin
Change-Id: I9c61a46c57894bc63a57740206c0bcb4a16553af Reviewed-on: https://gerrit.libreoffice.org/21571 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-01-11loplugin:unusedmethods unused return value in hwpfilterNoel Grandin
Change-Id: Ib225db89e60708f6b55b3cb86f8e881386fab86f
2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann
Change-Id: Idec97093ca48c14b825c7b87ec050cc99aadc526
2015-04-15remove unnecessary use of void in function declarationsNoel Grandin
ie. void f(void); becomes void f(); I used the following command to make the changes: git grep -lP '\(\s*void\s*\)' -- *.cxx \ | xargs perl -pi -w -e 's/(\w+)\s*\(\s*void\s*\)/$1\(\)/g;' and ran it for both .cxx and .hxx files. Change-Id: I314a1b56e9c14d10726e32841736b0ad5eef8ddd
2014-04-19cpplint: [readability/utf8] Line contains invalid UTF-8Julien Nabet
Change-Id: Ifb8793c3a1647bfa0d02e471419acb434dcea951
2012-06-22re-base on ALv2 code. Includes:Michael Meeks
Use ksc5601.h header from XFree86 Project Inc. Patch contributed by Oliver-Rainer Wittmann with minor changes from Pedro Giffuni http://svn.apache.org/viewvc?view=revision&revision=1179296
2011-06-13gbuildize hwpfilterCaolán McNamara