Update deprecation-warning.cpp (#10619)
Some checks are pending
flake8 Lint / Lint (push) Waiting to run
Python Type-Check / pyright type-check (push) Waiting to run

Fixed Path Separator Handling for Cross-Platform Support (Windows File Systems)
This commit is contained in:
aryantandon01 2024-12-05 03:49:20 +05:30 committed by GitHub
parent 1da7b76569
commit f112d198cd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -12,7 +12,7 @@ int main(int argc, char** argv) {
}
// Get only the program name from the full path
auto pos = filename.find_last_of('/');
auto pos = filename.find_last_of("/\\");
if (pos != std::string::npos) {
filename = filename.substr(pos+1);
}