From bb71e3a40067e4ef6c6879e6d26ad20f728dd822 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 10 Sep 2015 15:38:14 +0200 Subject: This presumably wants to swallow exceptions from XSeekable::seek ...instead of doing a needless catch and re-throw Change-Id: I1b1c593ac19a46aa7acfca753bc8177aa7a8ff12 --- writerperfect/source/common/WPXSvInputStream.cxx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'writerperfect') 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 &rxSeekable) { } -PositionHolder::~PositionHolder() try -{ - mxSeekable->seek(mnPosition); -} -catch (...) +PositionHolder::~PositionHolder() { + try { + mxSeekable->seek(mnPosition); + } catch (...) {} } } // anonymous namespace -- cgit