summaryrefslogtreecommitdiff
path: root/xmlhelp
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-02-25 14:49:14 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-02-25 14:59:07 +0000
commit9bc5d4cdf010091406091875e6c45d975ebc9708 (patch)
tree9c4230d1057242147f5b136de847b1df61cd7117 /xmlhelp
parent2a0ad98ba798a280de649e17fb7212f6b4077917 (diff)
re org things a little to quieten coverity warnings
Change-Id: I3bf0840f6428ee8cefd424a486cc2f5fcfda290f
Diffstat (limited to 'xmlhelp')
-rw-r--r--xmlhelp/source/cxxhelp/provider/inputstream.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/xmlhelp/source/cxxhelp/provider/inputstream.cxx b/xmlhelp/source/cxxhelp/provider/inputstream.cxx
index fd6a27836e22..31067b4b1ea0 100644
--- a/xmlhelp/source/cxxhelp/provider/inputstream.cxx
+++ b/xmlhelp/source/cxxhelp/provider/inputstream.cxx
@@ -37,13 +37,12 @@ XInputStream_impl::XInputStream_impl( const OUString& aUncPath )
m_bIsOpen = ( osl::FileBase::E_None == m_aFile.open( osl_File_OpenFlag_Read ) );
}
-
XInputStream_impl::~XInputStream_impl()
{
- closeInput();
+ if (m_bIsOpen)
+ m_aFile.close();
}
-
uno::Any SAL_CALL
XInputStream_impl::queryInterface( const uno::Type& rType )
{