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

Jan Holesovsky kendy at collabora.com
Tue Mar 29 10:43:26 UTC 2016


 loolwsd/MessageQueue.cpp |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 9e180171c2c59aea57cee4abd04465bc1810b15c
Author: Jan Holesovsky <kendy at collabora.com>
Date:   Tue Mar 29 12:42:45 2016 +0200

    WaE: Shadowed variable.

diff --git a/loolwsd/MessageQueue.cpp b/loolwsd/MessageQueue.cpp
index cf2c480..61acb20 100644
--- a/loolwsd/MessageQueue.cpp
+++ b/loolwsd/MessageQueue.cpp
@@ -76,8 +76,8 @@ void BasicTileQueue::put_impl(const Payload& value)
                     {
                         // must not remove the tiles with 'id=', they are special, used
                         // eg. for previews etc.
-                        const auto msg = std::string(&v[0], v.size());
-                        return (msg.compare(0, 5, "tile ") == 0) && (msg.find("id=") == std::string::npos);
+                        const auto tmp = std::string(&v[0], v.size());
+                        return (tmp.compare(0, 5, "tile ") == 0) && (tmp.find("id=") == std::string::npos);
                     }
                     ),
                 _queue.end());


More information about the Libreoffice-commits mailing list