[Libreoffice-commits] online.git: wsd/Admin.cpp wsd/Admin.hpp

Miklos Vajna vmiklos at collabora.co.uk
Mon Jul 9 07:11:56 UTC 2018


 wsd/Admin.cpp |    2 +-
 wsd/Admin.hpp |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 8ad281e12fbeec0b8d25e1acded8c0e8b9a8ec16
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Mon Jul 9 09:11:20 2018 +0200

    wsd: avoid unnecessary value parameter

diff --git a/wsd/Admin.cpp b/wsd/Admin.cpp
index 61a5e9d1b..b8d8d6afd 100644
--- a/wsd/Admin.cpp
+++ b/wsd/Admin.cpp
@@ -300,7 +300,7 @@ void AdminSocketHandler::sendTextFrame(const std::string& message)
         LOG_TRC("Skip sending message to non-authenticated client: '" << message << "'");
 }
 
-void AdminSocketHandler::subscribeAsync(const std::shared_ptr<AdminSocketHandler> handler)
+void AdminSocketHandler::subscribeAsync(const std::shared_ptr<AdminSocketHandler>& handler)
 {
     Admin &admin = Admin::instance();
 
diff --git a/wsd/Admin.hpp b/wsd/Admin.hpp
index d5b1aab79..eb2f97c79 100644
--- a/wsd/Admin.hpp
+++ b/wsd/Admin.hpp
@@ -36,7 +36,7 @@ public:
     static bool handleInitialRequest(const std::weak_ptr<StreamSocket> &socket,
                                      const Poco::Net::HTTPRequest& request);
 
-    static void subscribeAsync(const std::shared_ptr<AdminSocketHandler> handler);
+    static void subscribeAsync(const std::shared_ptr<AdminSocketHandler>& handler);
 
 private:
     /// Sends text frames simply to authenticated clients.


More information about the Libreoffice-commits mailing list