summaryrefslogtreecommitdiff
path: root/test/UnitCopyPaste.cpp
diff options
context:
space:
mode:
authorAshod Nakashian <ashod.nakashian@collabora.co.uk>2020-06-02 23:17:04 -0400
committerAshod Nakashian <ashnakash@gmail.com>2020-06-23 06:41:58 +0200
commit4a57654d884539406f6b87f937f7d3b79e780545 (patch)
tree80af38c877626c5f23939657e2fb72680c2692b1 /test/UnitCopyPaste.cpp
parent8e784f2bdd9cc789fe896a31d13d22aa8d39e0bb (diff)
wsd: avoid unnecessary string ops
Change-Id: Ia5a6f2d7a260edaf8bb294693be12a434a2c30fe Reviewed-on: https://gerrit.libreoffice.org/c/online/+/96376 Tested-by: Jenkins Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Diffstat (limited to 'test/UnitCopyPaste.cpp')
-rw-r--r--test/UnitCopyPaste.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/UnitCopyPaste.cpp b/test/UnitCopyPaste.cpp
index 17f7ba381..8b8e6af70 100644
--- a/test/UnitCopyPaste.cpp
+++ b/test/UnitCopyPaste.cpp
@@ -108,7 +108,7 @@ public:
std::string value;
// allow empty clipboards
- if (clipboard && mimeType == "" && content == "")
+ if (clipboard && mimeType.empty() && content.empty())
return true;
if (!clipboard || !clipboard->findType(mimeType, value))