diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-09-10 15:38:14 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-09-10 15:38:14 +0200 |
commit | bb71e3a40067e4ef6c6879e6d26ad20f728dd822 (patch) | |
tree | 59df5fe1196562d464e1f668e4895485d333080a /writerperfect | |
parent | 727c5b5fbd9392ce476a9a27c9f11f0a3000e0fb (diff) |
This presumably wants to swallow exceptions from XSeekable::seek
...instead of doing a needless catch and re-throw
Change-Id: I1b1c593ac19a46aa7acfca753bc8177aa7a8ff12
Diffstat (limited to 'writerperfect')
-rw-r--r-- | writerperfect/source/common/WPXSvInputStream.cxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/writerperfect/source/common/WPXSvInputStream.cxx b/writerperfect/source/common/WPXSvInputStream.cxx index d3befd07921b..84bcabb3ab90 100644 --- a/writerperfect/source/common/WPXSvInputStream.cxx +++ b/writerperfect/source/common/WPXSvInputStream.cxx @@ -60,12 +60,11 @@ PositionHolder::PositionHolder(const Reference<XSeekable> &rxSeekable) { } -PositionHolder::~PositionHolder() try -{ - mxSeekable->seek(mnPosition); -} -catch (...) +PositionHolder::~PositionHolder() { + try { + mxSeekable->seek(mnPosition); + } catch (...) {} } } // anonymous namespace |