Revert "refactor: remove excess cast to C-string and add const reference"

This reverts commit 34ee40393f.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:
Compute-Runtime-Validation
2025-01-15 02:11:43 +01:00
committed by Compute-Runtime-Automation
parent 6a7bee67e9
commit 242a31a024
7 changed files with 13 additions and 13 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2025 Intel Corporation
* Copyright (C) 2024-2025 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -15,7 +15,7 @@ namespace NEO {
bool pathExists(const std::string &path) {
struct stat statbuf = {};
if (NEO::SysCalls::stat(path, &statbuf) == -1) {
if (NEO::SysCalls::stat(path.c_str(), &statbuf) == -1) {
return false;
}