diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:14:18 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:14:18 +0100 |
commit | 43b137e1404acbd16649813e9d493ba97b8f509c (patch) | |
tree | 2e5827c0d60185c56603e66b1ea74a72230b9476 /svtools/source/control/toolbarmenu.cxx | |
parent | c049c76fc521f2b55b39a6e9eb0f0092bcf6ef77 (diff) |
More loplugin:cstylecast: svtools
auto-rewrite with <https://gerrit.libreoffice.org/#/c/47798/> "Enable
loplugin:cstylecast for some more cases" plus
solenv/clang-format/reformat-formatted-files
Change-Id: Ide9e7c53b554f0a36e2078a8823f5ef6fb5cc8fa
Diffstat (limited to 'svtools/source/control/toolbarmenu.cxx')
-rw-r--r-- | svtools/source/control/toolbarmenu.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svtools/source/control/toolbarmenu.cxx b/svtools/source/control/toolbarmenu.cxx index 92cb4b88e83f..eb0c3dcc9b03 100644 --- a/svtools/source/control/toolbarmenu.cxx +++ b/svtools/source/control/toolbarmenu.cxx @@ -387,7 +387,7 @@ void ToolbarMenu_Impl::notifyHighlightedEntry() ToolbarMenuEntry* ToolbarMenu_Impl::implGetEntry( int nEntry ) const { - if( (nEntry < 0) || (nEntry >= (int)maEntryVector.size() ) ) + if( (nEntry < 0) || (nEntry >= static_cast<int>(maEntryVector.size()) ) ) return nullptr; return maEntryVector[nEntry].get(); @@ -1005,7 +1005,7 @@ ToolbarMenuEntry* ToolbarMenu::implCursorUpDown( bool bUp, bool bHomeEnd ) } else { - if( n < ((int)mpImpl->maEntryVector.size()-1) ) + if( n < (static_cast<int>(mpImpl->maEntryVector.size())-1) ) n++; else if( mpImpl->mnHighlightedEntry == -1 ) |