diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2018-08-09 16:30:41 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-08-10 08:21:32 +0200 |
commit | 76dd6bb9cc6dff0f59cdfce87b61210be6476965 (patch) | |
tree | 6ac05017f888f89115d8fdc3cd3b977f83cf1d70 /sc/source/ui/view/editsh.cxx | |
parent | 4e63c00f4dd5f8ac6496481e687c59209f9aee07 (diff) |
unnecessary null check before dynamic_cast, in sc
Change-Id: I442dee456ccb419642e6cedee7c3ca99ce214de6
Reviewed-on: https://gerrit.libreoffice.org/58773
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/view/editsh.cxx')
-rw-r--r-- | sc/source/ui/view/editsh.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/view/editsh.cxx b/sc/source/ui/view/editsh.cxx index ff519a49dd48..fe9ed2b53448 100644 --- a/sc/source/ui/view/editsh.cxx +++ b/sc/source/ui/view/editsh.cxx @@ -793,8 +793,8 @@ const SvxURLField* ScEditShell::GetURLField() if (pFieldItem) { const SvxFieldData* pField = pFieldItem->GetField(); - if ( pField && dynamic_cast<const SvxURLField*>( pField) != nullptr ) - return static_cast<const SvxURLField*>(pField); + if ( auto pURLField = dynamic_cast<const SvxURLField*>( pField) ) + return pURLField; } } |