diff options
author | Noel <noelgrandin@gmail.com> | 2020-09-30 12:08:47 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-09-30 14:56:06 +0200 |
commit | 46da549a68003ef5a35aedf4621482cb2b54e930 (patch) | |
tree | b60d2081c076545482ff6bb33bcb6c0d1d2d24c2 /sfx2/source/appl/sfxhelp.cxx | |
parent | 71303c5c23bdb385e9f12c0dbe5d2a0818b836ec (diff) |
loplugin:reducevarscope in sfx2
Change-Id: I63ee19bfe7ad01ff4ad8c941bffadd9406101c6a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103678
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source/appl/sfxhelp.cxx')
-rw-r--r-- | sfx2/source/appl/sfxhelp.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/appl/sfxhelp.cxx b/sfx2/source/appl/sfxhelp.cxx index da46da4274d5..9cd627dd1f0c 100644 --- a/sfx2/source/appl/sfxhelp.cxx +++ b/sfx2/source/appl/sfxhelp.cxx @@ -287,13 +287,13 @@ void AppendConfigToken( OUStringBuffer& rURL, bool bQuestionMark ) static bool GetHelpAnchor_Impl( const OUString& _rURL, OUString& _rAnchor ) { bool bRet = false; - OUString sAnchor; try { ::ucbhelper::Content aCnt( INetURLObject( _rURL ).GetMainURL( INetURLObject::DecodeMechanism::NONE ), Reference< css::ucb::XCommandEnvironment >(), comphelper::getProcessComponentContext() ); + OUString sAnchor; if ( aCnt.getPropertyValue("AnchorName") >>= sAnchor ) { |