summaryrefslogtreecommitdiff
path: root/connectivity/source/inc/file/FTable.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-05-02 15:42:39 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-05-03 08:25:55 +0200
commitb66ba0f0f297f7190f8d969486e07ede52987188 (patch)
treec4876c8891ac860b263c562f280a8b69784b6037 /connectivity/source/inc/file/FTable.hxx
parentae680f7c7d45b7f6cff4dc458d5ad37c5f777948 (diff)
make createStream_simpleError return std::unique_ptr
Change-Id: Ifb10f9806eeb3a54f8ed11ec0e65f9465cac3c5d Reviewed-on: https://gerrit.libreoffice.org/53765 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'connectivity/source/inc/file/FTable.hxx')
-rw-r--r--connectivity/source/inc/file/FTable.hxx4
1 files changed, 2 insertions, 2 deletions
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<SvStream> m_pFileStream;
::rtl::Reference<OSQLColumns> 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<SvStream> createStream_simpleError( const OUString& _rFileName, StreamMode _eOpenMode);
};
}
}