summaryrefslogtreecommitdiff
path: root/sccomp/inc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-10-17 23:04:19 +0200
committerStephan Bergmann <sbergman@redhat.com>2018-10-18 13:28:06 +0200
commit8ea9de4f7a7bec1ba6e20defa243655f7c3e0db8 (patch)
treef3c86191b1d37937ef22e435f50ade30bf391a36 /sccomp/inc
parent2e57dac3b44a17d4c45f242059d43225e79174e3 (diff)
Turn BorderHandler::BorderPosition into scoped enum
...to avoid -Werror,-Wshadow from Clang trunk with <https://reviews.llvm.org/D52400> "Improve -Wshadow warnings with enumerators", warning about shadowing of BORDER_TOP/LEFT/BOTTOM/RIGHT in enum BorderPosition in writerfilter/source/dmapper/PropertyMap.hxx. Also, BorderPosition can apparently be made a private member of BorderHandler, which gives extra confidence that any other uses of BORDER_TOP/LEFT/BOTTOM/RIGHT across writerfilter/source/dmapper/ indeed meant to reference the other enum BorderPosition. And change BorderHandler::lcl_sprm to return early in default case, to avoid having to come up with some new BorderPosition sentinel value to represent "invalid pos". Change-Id: I31e535326627cec25a17b99485bf7cf56f4c66d3 Reviewed-on: https://gerrit.libreoffice.org/61896 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sccomp/inc')
0 files changed, 0 insertions, 0 deletions