Remove default parameter.

Change-Id: I7da92801c7fa45b66bb7d770154d901bd3af9f5c
This commit is contained in:
Mrozek, Michal
2018-06-28 13:20:03 +02:00
committed by sys_ocldev
parent 561cdb7df5
commit 415623b08f
4 changed files with 13 additions and 14 deletions

View File

@@ -53,11 +53,10 @@ class Device : public BaseObject<_cl_device_id> {
static const cl_ulong objectMagic = 0x8055832341AC8D08LL;
template <typename T>
static T *create(const HardwareInfo *pHwInfo,
bool isRootDevice = true) {
static T *create(const HardwareInfo *pHwInfo) {
pHwInfo = getDeviceInitHwInfo(pHwInfo);
T *device = new T(*pHwInfo);
if (false == createDeviceImpl(pHwInfo, isRootDevice, *device)) {
if (false == createDeviceImpl(pHwInfo, true, *device)) {
delete device;
return nullptr;
}