File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -17,13 +17,14 @@ namespace driver {
17
17
context_t d_context;
18
18
19
19
ur_result_t mock_urPlatformGetApiVersion (void *pParams) {
20
- auto params = *static_cast <ur_platform_get_api_version_params_t *>(pParams);
20
+ const auto ¶ms =
21
+ *static_cast <ur_platform_get_api_version_params_t *>(pParams);
21
22
**params.ppVersion = d_context.version ;
22
23
return UR_RESULT_SUCCESS;
23
24
}
24
25
25
26
ur_result_t mock_urPlatformGetInfo (void *pParams) {
26
- auto params = *static_cast <ur_platform_get_info_params_t *>(pParams);
27
+ const auto & params = *static_cast <ur_platform_get_info_params_t *>(pParams);
27
28
if (!*params.phPlatform ) {
28
29
return UR_RESULT_ERROR_INVALID_NULL_HANDLE;
29
30
}
@@ -49,7 +50,7 @@ ur_result_t mock_urPlatformGetInfo(void *pParams) {
49
50
50
51
// ////////////////////////////////////////////////////////////////////////
51
52
ur_result_t mock_urDeviceGetInfo (void *pParams) {
52
- auto params = *static_cast <ur_device_get_info_params_t *>(pParams);
53
+ const auto & params = *static_cast <ur_device_get_info_params_t *>(pParams);
53
54
switch (*params.ppropName ) {
54
55
case UR_DEVICE_INFO_TYPE:
55
56
if (*params.ppPropValue != nullptr ) {
You can’t perform that action at this time.
0 commit comments