From 874431bcd18ea08269f03831486f3f3b749eee36 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 19 May 2016 13:34:48 +0200 Subject: loplugin:unreffun and loplugin:nullptr Change-Id: I0b8e094d5f5db4b9add46894c4a606256c2d6904 Reviewed-on: https://gerrit.libreoffice.org/25159 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- sax/qa/cppunit/xmlimport.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sax') 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 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; -- cgit