Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
503
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. From f8a25dcb46540f881d5c65b1cf3799fafcc06e9c Mon Sep 17 00:00:00 2001
  2. From: Kevin Ottens <ervin@kde.org>
  3. Date: Mon, 8 Nov 2010 23:22:48 +0100
  4. Subject: [PATCH] Make it build with QT_STRICT_ITERATORS.
  5.  
  6. ---
  7. TelepathyQt4/referenced-handles.cpp | 4 ++--
  8. 1 files changed, 2 insertions(+), 2 deletions(-)
  9.  
  10. diff --git a/TelepathyQt4/referenced-handles.cpp b/TelepathyQt4/referenced-handles.cpp
  11. index e7e9a36..3ac391e 100644
  12. --- a/TelepathyQt4/referenced-handles.cpp
  13. +++ b/TelepathyQt4/referenced-handles.cpp
  14. @@ -68,7 +68,7 @@ struct TELEPATHY_QT4_NO_EXPORT ReferencedHandles::Private : public QSharedData
  15. return;
  16. }
  17.  
  18. - for (const_iterator i = handles.begin(); i != handles.end(); ++i) {
  19. + for (const_iterator i = handles.constBegin(); i != handles.constEnd(); ++i) {
  20. conn->refHandle(handleType, *i);
  21. }
  22. }
  23. @@ -84,7 +84,7 @@ struct TELEPATHY_QT4_NO_EXPORT ReferencedHandles::Private : public QSharedData
  24. return;
  25. }
  26.  
  27. - for (const_iterator i = handles.begin(); i != handles.end(); ++i) {
  28. + for (const_iterator i = handles.constBegin(); i != handles.constEnd(); ++i) {
  29. conn->unrefHandle(handleType, *i);
  30. }
  31. }
  32. --
  33. 1.7.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement