diff --git a/extension/extension_connection/include/window_extension_client_stub_impl.h b/extension/extension_connection/include/window_extension_client_stub_impl.h index 242de1165c..5234889414 100644 --- a/extension/extension_connection/include/window_extension_client_stub_impl.h +++ b/extension/extension_connection/include/window_extension_client_stub_impl.h @@ -23,7 +23,7 @@ namespace OHOS { namespace Rosen { class WindowExtensionClientStubImpl : public WindowExtensionClientStub { public: - explicit WindowExtensionClientStubImpl(sptr& componentCallback) + explicit WindowExtensionClientStubImpl(const sptr& componentCallback) : componentCallback_(componentCallback) {}; ~WindowExtensionClientStubImpl() = default;