summaryrefslogtreecommitdiff
path: root/vcl/source/graphic/UnoBinaryDataContainer.cxx
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2023-04-01 15:06:30 +0100
committerMichael Meeks <michael.meeks@collabora.com>2023-04-13 22:22:47 +0200
commit689f0da67b063284991d758a4f0c66a305dcad37 (patch)
treeff9ed2cb15b9ab9601ba5e4ecb533736cf7d23b9 /vcl/source/graphic/UnoBinaryDataContainer.cxx
parent499247966af565071542f1cdfa882d6b8e6c33f0 (diff)
BinaryDataContainer: pure re-factor - encapsulate cbegin/cend
Change-Id: Ic8dbf0afdb96a0f1be210eedfbd12ef6467dd29f Signed-off-by: Michael Meeks <michael.meeks@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149916 Tested-by: Jenkins
Diffstat (limited to 'vcl/source/graphic/UnoBinaryDataContainer.cxx')
-rw-r--r--vcl/source/graphic/UnoBinaryDataContainer.cxx11
1 files changed, 1 insertions, 10 deletions
diff --git a/vcl/source/graphic/UnoBinaryDataContainer.cxx b/vcl/source/graphic/UnoBinaryDataContainer.cxx
index 4d6a0de9f796..3fe277024a6e 100644
--- a/vcl/source/graphic/UnoBinaryDataContainer.cxx
+++ b/vcl/source/graphic/UnoBinaryDataContainer.cxx
@@ -16,16 +16,7 @@ using namespace css;
css::uno::Sequence<sal_Int8> SAL_CALL UnoBinaryDataContainer::getCopyAsByteSequence()
{
- if (maBinaryDataContainer.isEmpty())
- return css::uno::Sequence<sal_Int8>();
-
- size_t nSize = maBinaryDataContainer.getSize();
-
- css::uno::Sequence<sal_Int8> aData(nSize);
-
- std::copy(maBinaryDataContainer.cbegin(), maBinaryDataContainer.cend(), aData.getArray());
-
- return aData;
+ return maBinaryDataContainer.getCopyAsByteSequence();
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */