From b66ba0f0f297f7190f8d969486e07ede52987188 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 2 May 2018 15:42:39 +0200 Subject: make createStream_simpleError return std::unique_ptr Change-Id: Ifb10f9806eeb3a54f8ed11ec0e65f9465cac3c5d Reviewed-on: https://gerrit.libreoffice.org/53765 Tested-by: Jenkins Reviewed-by: Noel Grandin --- connectivity/source/inc/file/FTable.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'connectivity/source/inc/file') diff --git a/connectivity/source/inc/file/FTable.hxx b/connectivity/source/inc/file/FTable.hxx index a13437a052fd..3495c79c24c9 100644 --- a/connectivity/source/inc/file/FTable.hxx +++ b/connectivity/source/inc/file/FTable.hxx @@ -39,7 +39,7 @@ namespace connectivity { protected: OConnection* m_pConnection; - SvStream* m_pFileStream; + std::unique_ptr m_pFileStream; ::rtl::Reference m_aColumns; sal_Int32 m_nFilePos; // current IResultSetHelper::Movement sal_uInt8* m_pBuffer; @@ -100,7 +100,7 @@ namespace connectivity // creates a stream using ::utl::UcbStreamHelper::CreateStream, but the error is simplified // (NULL or non-NULL is returned) - static SvStream* createStream_simpleError( const OUString& _rFileName, StreamMode _eOpenMode); + static std::unique_ptr createStream_simpleError( const OUString& _rFileName, StreamMode _eOpenMode); }; } } -- cgit