diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2024-04-01 20:52:59 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-04-02 07:53:43 +0200 |
commit | 25b642fdd87da4d5ed556600d0eb69d72865f666 (patch) | |
tree | dbf08943be588a9e9e09f7aaa2f03d057649c14c /include/sot/storage.hxx | |
parent | 2ad14abcf790002ac6fe09afbc5a2cae46f62085 (diff) |
simplify SotTempStream and lifetime
It is really just an SvStream instance, and the lifetime does
not need reference counting
Change-Id: Idb5ffd96f852aae0dc1a94cddc0a83fbcdf974ff
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165655
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/sot/storage.hxx')
-rw-r--r-- | include/sot/storage.hxx | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/include/sot/storage.hxx b/include/sot/storage.hxx index 2a49b4a39475..39246b779a29 100644 --- a/include/sot/storage.hxx +++ b/include/sot/storage.hxx @@ -35,15 +35,9 @@ enum class SotClipboardFormatId : sal_uInt32; class BaseStorageStream; -class SOT_DLLPUBLIC SotTempStream final : virtual public SvRefBase, public SvStream +namespace SotTempStream { -friend class SotStorage; - - virtual ~SotTempStream() override; -public: - SotTempStream(OUString const & rString, StreamMode = StreamMode::STD_READWRITE); - - void CopyTo(SotTempStream * pDestStm); + SOT_DLLPUBLIC std::unique_ptr<SvStream> Create(OUString const & rString, StreamMode = StreamMode::STD_READWRITE); }; class SOT_DLLPUBLIC SotStorageStream final : virtual public SotObject, public SvStream |