!42 shared指针编译错误纠正

Merge pull request !42 from hongran1206/develop_test_zhr
This commit is contained in:
hongran1206 2023-04-23 05:55:49 +00:00 committed by Gitee
commit d47f1dfd86
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@
namespace OHOS {
namespace Media {
class ICodecService : public std::enable_shared_from_this<ICodecService> {
class ICodecService {
public:
virtual ~ICodecService() = default;

View File

@ -24,7 +24,7 @@
namespace OHOS {
namespace Media {
class CodecServer : public ICodecService, public NoCopyable {
class CodecServer : public std::enable_shared_from_this<CodecServer>, public ICodecService, public NoCopyable {
public:
static std::shared_ptr<ICodecService> Create();
CodecServer();