summaryrefslogtreecommitdiff
path: root/svx/source/gallery2
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2023-05-08 17:16:22 +0200
committerJulien Nabet <serval2412@yahoo.fr>2023-05-08 20:47:27 +0200
commit76a3c01c3abd01f404f8f5ac572e52b2f8a2927e (patch)
tree7cecc4527ff3b48d37c935c88e2fd1e726527542 /svx/source/gallery2
parent9d6653fc5579f60e5d93dd8ae767579fbeaecf51 (diff)
Simplify initialization in sw/unotxdoc + flatten a bit
static_cast<sal_Int32> could be removed since: - GetLeftSpace, GetRightSpace, etc. return a sal_Int32 - convertTwipToMm100 is a template method defined like this: 93 template <typename N> constexpr auto convertTwipToMm100(N n) 94 { 95 return o3tl::convert(n, o3tl::Length::twip, o3tl::Length::mm100); 96 } (see https://opengrok.libreoffice.org/xref/core/include/tools/UnitConversion.hxx?r=bfed5882&mo=2801&fi=93#93) so will return sal_Int32 if its argument is a sal_Int32 "comphelper::makePropertyValue" would have simplified even more but the handle here is -1 not 0. Now, I don't know what would be the impact. Change-Id: Ie39e6c5984930e53dff7de3584cb80f421f9288c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151540 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'svx/source/gallery2')
0 files changed, 0 insertions, 0 deletions