mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-09 22:43:00 +08:00
Change createGmmContextWrapperFunc to return unique ptr
Change-Id: I74e6c5b1a49ed19f24933edd3062c62d9256f2d8
This commit is contained in:
committed by
sys_ocldev
parent
c5becf63f7
commit
df2f29907c
@@ -37,8 +37,8 @@ class GmmClientContextBase {
|
||||
MOCKABLE_VIRTUAL void destroyResInfoObject(GMM_RESOURCE_INFO *pResInfo);
|
||||
GMM_CLIENT_CONTEXT *getHandle() const;
|
||||
template <typename T>
|
||||
static GmmClientContext *create(GMM_CLIENT clientType) {
|
||||
return new T(clientType);
|
||||
static std::unique_ptr<GmmClientContext> create(GMM_CLIENT clientType) {
|
||||
return std::make_unique<T>(clientType);
|
||||
}
|
||||
|
||||
protected:
|
||||
|
||||
Reference in New Issue
Block a user