[Libreoffice-commits] core.git: include/vcl
Tomaž Vajngerl (via logerrit)
logerrit at kemper.freedesktop.org
Wed Dec 30 07:24:36 UTC 2020
include/vcl/BinaryDataContainer.hxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 4d3806c945b695488e2c5a9c83ed44ab8842511d
Author: Tomaž Vajngerl <tomaz.vajngerl at collabora.co.uk>
AuthorDate: Tue Dec 29 18:54:21 2020 +0900
Commit: Tomaž Vajngerl <quikee at gmail.com>
CommitDate: Wed Dec 30 08:23:55 2020 +0100
vcl: Fix isEmpty method in BinaryDataContainer
Change-Id: I638473841be92d46f4a6ab2bac1b6f63ef7982ae
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108450
Tested-by: Tomaž Vajngerl <quikee at gmail.com>
Reviewed-by: Tomaž Vajngerl <quikee at gmail.com>
diff --git a/include/vcl/BinaryDataContainer.hxx b/include/vcl/BinaryDataContainer.hxx
index 5eb5f4486b9e..b137bdb5dbb9 100644
--- a/include/vcl/BinaryDataContainer.hxx
+++ b/include/vcl/BinaryDataContainer.hxx
@@ -36,7 +36,7 @@ public:
BinaryDataContainer& operator=(BinaryDataContainer&& rBinaryDataContainer) = default;
size_t getSize() const { return mpData ? mpData->size() : 0; }
- bool isEmpty() const { return mpData && mpData->empty(); }
+ bool isEmpty() const { return !mpData || mpData->empty(); }
const sal_uInt8* getData() const { return mpData ? mpData->data() : nullptr; }
size_t calculateHash() const;
More information about the Libreoffice-commits
mailing list