wsd: use client_from_this

Change-Id: I45bcb010ec6f1d091c04d2a8b2f49a6da57f8e4e
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
This commit is contained in:
Ashod Nakashian 2022-11-26 18:47:52 -05:00 committed by Tomaž Vajngerl
parent 7a74227164
commit 46f9e8de29

View file

@ -1872,9 +1872,7 @@ bool ClientSession::handleKitToClientMessage(const std::shared_ptr<Message>& pay
if (UnitWSD::isUnitTesting())
{
UnitWSD::get().onDocBrokerViewLoaded(
docBroker->getDocKey(),
std::dynamic_pointer_cast<ClientSession>(shared_from_this()));
UnitWSD::get().onDocBrokerViewLoaded(docBroker->getDocKey(), client_from_this());
}
#if !MOBILEAPP