summaryrefslogtreecommitdiff
path: root/vcl/osx/clipboard.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-06-10 13:51:56 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-06-11 06:48:29 +0000
commitd203948fdb780c7af5777fcc26ad88bac1bd714e (patch)
tree95458f3a290eed3d9a4ca13f28ec63f50490d7a6 /vcl/osx/clipboard.cxx
parent754ade38ddb2e96187d00f3e621203cea34961fa (diff)
convert 'it.begin() == it.end()' to 'it.empty()'
Change-Id: I244a9eb6bce6b1c649653ec38ebb9a39f8b4c145 Reviewed-on: https://gerrit.libreoffice.org/16212 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'vcl/osx/clipboard.cxx')
-rw-r--r--vcl/osx/clipboard.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/osx/clipboard.cxx b/vcl/osx/clipboard.cxx
index 1f444ca7c0c7..008ec32ade5e 100644
--- a/vcl/osx/clipboard.cxx
+++ b/vcl/osx/clipboard.cxx
@@ -259,14 +259,14 @@ void AquaClipboard::fireClipboardChangedEvent()
list<Reference< XClipboardListener > > listeners(mClipboardListeners);
ClipboardEvent aEvent;
- if (listeners.begin() != listeners.end())
+ if (!listeners.empty())
{
aEvent = ClipboardEvent(static_cast<OWeakObject*>(this), getContents());
}
aGuard.clear();
- while (listeners.begin() != listeners.end())
+ while (!listeners.empty())
{
if (listeners.front().is())
{