diff options
Diffstat (limited to 'writerperfect')
-rw-r--r-- | writerperfect/source/common/WPXSvStream.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/writerperfect/source/common/WPXSvStream.cxx b/writerperfect/source/common/WPXSvStream.cxx index 6bb14d289151..73f677410a09 100644 --- a/writerperfect/source/common/WPXSvStream.cxx +++ b/writerperfect/source/common/WPXSvStream.cxx @@ -714,11 +714,12 @@ void WPXSvInputStreamImpl::invalidateReadBuffer() WPXInputStream *WPXSvInputStreamImpl::createWPXStream(const SotStorageStreamRef &rxStorage) { - Reference < XInputStream > xContents(new utl::OSeekableInputStreamWrapper( rxStorage )); - if (xContents.is()) + if (rxStorage.Is()) + { + Reference < XInputStream > xContents(new utl::OSeekableInputStreamWrapper( rxStorage )); return new WPXSvInputStream( xContents ); - else - return 0; + } + return 0; } WPXInputStream *WPXSvInputStreamImpl::createWPXStream(const Reference<XInputStream> &rxStream) |