[Libreoffice-commits] online.git: loolwsd/TileCache.cpp

Miklos Vajna vmiklos at collabora.co.uk
Mon Apr 25 07:12:43 UTC 2016


 loolwsd/TileCache.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit f99e2146bc9bd9f1698bd83c26ce24d9f493cdb1
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Mon Apr 25 09:11:59 2016 +0200

    TileCache: loop variable is copied but only used as const reference
    
    Change-Id: I2f4ec5dad91abd6776095962070bd5b12021c24f

diff --git a/loolwsd/TileCache.cpp b/loolwsd/TileCache.cpp
index 383bb87..e7c9830 100644
--- a/loolwsd/TileCache.cpp
+++ b/loolwsd/TileCache.cpp
@@ -53,7 +53,7 @@ TileBeingRendered::TileBeingRendered()
 void TileBeingRendered::subscribe(const std::weak_ptr<MasterProcessSession>& session)
 {
     std::shared_ptr<MasterProcessSession> cmp = session.lock();
-    for (auto s : _subscribers)
+    for (const auto& s : _subscribers)
     {
         if (s.lock().get() == cmp.get())
         {


More information about the Libreoffice-commits mailing list