From 733883fb11cb415a52ae9d31369e279208ca2bdb Mon Sep 17 00:00:00 2001 From: Ashod Nakashian Date: Sat, 27 May 2023 08:34:16 -0400 Subject: [PATCH] wsd: make findOrCreateDocBroker non-static Needed to reference from ourside COOLWSD. Change-Id: Ib8a160d912c6d3a2d972cc1fcf231e862f2fe24b Signed-off-by: Ashod Nakashian --- wsd/COOLWSD.cpp | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/wsd/COOLWSD.cpp b/wsd/COOLWSD.cpp index aca7bffba..c74baf880 100644 --- a/wsd/COOLWSD.cpp +++ b/wsd/COOLWSD.cpp @@ -3663,14 +3663,11 @@ void COOLWSD::sendMessageToForKit(const std::string& message) /// Otherwise, creates and adds a new one to DocBrokers. /// May return null if terminating or MaxDocuments limit is reached. /// After returning a valid instance DocBrokers must be cleaned up after exceptions. -static std::shared_ptr - findOrCreateDocBroker(const std::shared_ptr& proto, - DocumentBroker::ChildType type, - const std::string& uri, - const std::string& docKey, - const std::string& id, - const Poco::URI& uriPublic, - unsigned mobileAppDocId = 0) +std::shared_ptr +findOrCreateDocBroker(const std::shared_ptr& proto, + DocumentBroker::ChildType type, const std::string& uri, + const std::string& docKey, const std::string& id, const Poco::URI& uriPublic, + unsigned mobileAppDocId = 0) { LOG_INF("Find or create DocBroker for docKey [" << docKey << "] for session [" << id << "] on url ["