diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-04-09 16:27:42 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-04-09 21:25:18 +0200 |
commit | 0b0bc5eb77ac735573482dddd6814c9763f8c6e1 (patch) | |
tree | 0c3b5c8fdb61b43454ac2cedc271127e4c14826e /uui/source/iahndl-filter.cxx | |
parent | 0a4c1fb68c3619e61099a7c548f550b0d3fd7a53 (diff) |
Remove std::bad_alloc -> css::uno::RuntimeException mappings
...that are no longer needed now that the dynamic exception specifications are
gone from C++ UNO, so won't cause std::unexpected any more.
Change-Id: Ie3418658f5a84e6cec1ac48e3413f523f87497fe
Reviewed-on: https://gerrit.libreoffice.org/52641
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'uui/source/iahndl-filter.cxx')
-rw-r--r-- | uui/source/iahndl-filter.cxx | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/uui/source/iahndl-filter.cxx b/uui/source/iahndl-filter.cxx index 630197ee64bb..421ce727592e 100644 --- a/uui/source/iahndl-filter.cxx +++ b/uui/source/iahndl-filter.cxx @@ -49,24 +49,17 @@ executeFilterDialog( uui::FilterNameList const & rFilters, OUString & rFilter ) { - try - { - SolarMutexGuard aGuard; + SolarMutexGuard aGuard; - ScopedVclPtrInstance< uui::FilterDialog > xDialog(pParent); + ScopedVclPtrInstance< uui::FilterDialog > xDialog(pParent); - xDialog->SetURL(rURL); - xDialog->ChangeFilters(&rFilters); + xDialog->SetURL(rURL); + xDialog->ChangeFilters(&rFilters); - uui::FilterNameListPtr pSelected = rFilters.end(); - if( xDialog->AskForFilter( pSelected ) ) - { - rFilter = pSelected->sInternal; - } - } - catch (std::bad_alloc const &) + uui::FilterNameListPtr pSelected = rFilters.end(); + if( xDialog->AskForFilter( pSelected ) ) { - throw uno::RuntimeException("out of memory"); + rFilter = pSelected->sInternal; } } |