[Libreoffice-commits] core.git: sax/qa

Noel Grandin noel at peralex.com
Thu May 19 12:57:19 UTC 2016


 sax/qa/cppunit/xmlimport.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 874431bcd18ea08269f03831486f3f3b749eee36
Author: Noel Grandin <noel at peralex.com>
Date:   Thu May 19 13:34:48 2016 +0200

    loplugin:unreffun and loplugin:nullptr
    
    Change-Id: I0b8e094d5f5db4b9add46894c4a606256c2d6904
    Reviewed-on: https://gerrit.libreoffice.org/25159
    Reviewed-by: Noel Grandin <noelgrandin at gmail.com>
    Tested-by: Noel Grandin <noelgrandin at gmail.com>

diff --git a/sax/qa/cppunit/xmlimport.cxx b/sax/qa/cppunit/xmlimport.cxx
index 881b0cc..33a0837 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;


More information about the Libreoffice-commits mailing list