diff options
author | Noel Grandin <noel@peralex.com> | 2016-05-19 13:34:48 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-05-19 12:56:58 +0000 |
commit | 874431bcd18ea08269f03831486f3f3b749eee36 (patch) | |
tree | 73f0424ae7d0b6c52173a642f6093541138e840f /sax | |
parent | f70540c4a58fd81c5a24c535aa4038c0fa8a02d3 (diff) |
loplugin:unreffun and loplugin:nullptr
Change-Id: I0b8e094d5f5db4b9add46894c4a606256c2d6904
Reviewed-on: https://gerrit.libreoffice.org/25159
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sax')
-rw-r--r-- | sax/qa/cppunit/xmlimport.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sax/qa/cppunit/xmlimport.cxx b/sax/qa/cppunit/xmlimport.cxx index 881b0cc121ba..33a0837aceb6 100644 --- a/sax/qa/cppunit/xmlimport.cxx +++ b/sax/qa/cppunit/xmlimport.cxx @@ -46,7 +46,7 @@ Reference< XInputStream > createStreamFromFile ( OUString aInStr; osl::FileBase::getFileURLFromSystemPath(filePath, aInStr); SvStream* pStream = utl::UcbStreamHelper::CreateStream(aInStr, StreamMode::READ); - if(pStream == NULL) + if(pStream == nullptr) CPPUNIT_ASSERT(false); uno::Reference<io::XStream> xStream(new utl::OStreamWrapper(*pStream)); xInputStream.set(xStream, uno::UNO_QUERY); @@ -60,7 +60,7 @@ private: public: TestDocumentHandler() {} - OUString getString() { return m_aStr; } + //const OUString& getString() { return m_aStr; } // XDocumentHandler virtual void SAL_CALL startDocument() throw (xml::sax::SAXException, RuntimeException, std::exception) override; virtual void SAL_CALL endDocument() throw (xml::sax::SAXException, RuntimeException, std::exception) override; |