mirror of
https://github.com/openharmony/distributedhardware_distributed_input.git
synced 2026-07-21 05:45:23 -04:00
update sourcehandler/src/distributed_input_source_handler.cpp.
Signed-off-by: ry521 <renyi50@huawei.com>
This commit is contained in:
@@ -26,7 +26,7 @@ namespace DistributedHardware {
|
||||
namespace DistributedInput {
|
||||
IMPLEMENT_SINGLE_INSTANCE(DistributedInputSourceHandler);
|
||||
|
||||
DistributedInputSourceHandler::~DistributedInputSourceHandler()
|
||||
DistributedInputSourceHandler::DistributedInputSourceHandler()
|
||||
{
|
||||
DHLOGI("DInputSourceHandler construct.");
|
||||
std::lock_guard<std::mutex> lock(proxyMutex_);
|
||||
@@ -34,8 +34,8 @@ DistributedInputSourceHandler::~DistributedInputSourceHandler()
|
||||
sourceSvrRecipient_ = new (std::nothrow) DInputSourceSvrRecipient();
|
||||
}
|
||||
|
||||
if (sourceSvrRecipient_ == nullptr) {
|
||||
sourceSvrRecipient_ = new (std::nothrow) LoadDInputSourceCallback();
|
||||
if (dInputSourceCallback_ == nullptr) {
|
||||
dInputSourceCallback_ = new (std::nothrow) LoadDInputSourceCallback();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user