diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2020-12-27 19:07:57 +0900 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2021-01-10 23:59:57 +0100 |
commit | 80497c7d81af36f703d122ac78baa26387a5854d (patch) | |
tree | 79e119b88b6a133564a3a0e605fdd6f40f950e3e /vcl/source/graphic | |
parent | 070084c4d62bc05d7d9fdd7b4368b91ccd9c1e8b (diff) |
vcl: implement BinaryDataContainer copy, move + test
Also remove constructor that takes size only - BinaryDataContainer
should always be constructed with data, that is copied into the
container and should be immutable.
Change-Id: Ic61b393b7729b948843bd20e6676c9290c68936f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108439
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'vcl/source/graphic')
-rw-r--r-- | vcl/source/graphic/BinaryDataContainer.cxx | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/vcl/source/graphic/BinaryDataContainer.cxx b/vcl/source/graphic/BinaryDataContainer.cxx index 4c556195fe6a..7576852215b1 100644 --- a/vcl/source/graphic/BinaryDataContainer.cxx +++ b/vcl/source/graphic/BinaryDataContainer.cxx @@ -13,11 +13,6 @@ BinaryDataContainer::BinaryDataContainer() = default; -BinaryDataContainer::BinaryDataContainer(size_t nSize) - : mpData(std::make_shared<std::vector<sal_uInt8>>(nSize)) -{ -} - BinaryDataContainer::BinaryDataContainer(const sal_uInt8* pData, size_t nSize) : mpData(std::make_shared<std::vector<sal_uInt8>>(nSize)) { |