diff options
author | nccuong <cao.cuong.ngo@gmail.com> | 2013-03-04 15:25:02 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2013-03-06 12:59:26 +0000 |
commit | a6b91730053fc61416716ae176081b91de52532b (patch) | |
tree | 192e578875f9abe82ca535e3cb794944bac9d9aa /unotools | |
parent | Resolves: #i120306# cleanup failed loading of problematic jpeg (diff) | |
download | core-a6b91730053fc61416716ae176081b91de52532b.tar.gz core-a6b91730053fc61416716ae176081b91de52532b.zip |
fdo#60148 Clean up warnings from the Clang compiler plugin
Change-Id: I08d755677c46c476710ecbd067ed9f7e2f54a671
loplugin: clean warnings: unused variables, incorrect indentation and log area.
Reviewed-on: https://gerrit.libreoffice.org/2544
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/source/config/configitem.cxx | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/unotools/source/config/configitem.cxx b/unotools/source/config/configitem.cxx index 4c91fd3acefc..1a6667b4d671 100644 --- a/unotools/source/config/configitem.cxx +++ b/unotools/source/config/configitem.cxx @@ -658,11 +658,13 @@ static void lcl_normalizeLocalNames(Sequence< OUString >& _rNames, ConfigNameFor { OUString * pNames = _rNames.getArray(); for(int i = 0; i<_rNames.getLength(); ++i) - try { - pNames[i] = xFormatter->composeHierarchicalName(pNames[i]); + try + { + pNames[i] = xFormatter->composeHierarchicalName(pNames[i]); + } + CATCH_INFO("Exception from composeHierarchicalName(): ") } - CATCH_INFO("Exception from composeHierarchicalName(): ") break; } } @@ -1016,16 +1018,17 @@ sal_Bool ConfigItem::ReplaceSetProperties( catch (const Exception&) { if (isSimpleValueSet) - try { - // #i37322#: fallback action: replace with <void/> - xCont->replaceByName(pContainerSubNodes[nContSub], Any()); - // fallback successful: continue looping - continue; + try + { + // #i37322#: fallback action: replace with <void/> + xCont->replaceByName(pContainerSubNodes[nContSub], Any()); + // fallback successful: continue looping + continue; + } + catch (Exception &) + {} // propagate original exception, if fallback fails } - catch (Exception &) - {} // propagate original exception, if fallback fails - throw; } } |