[Scummvm-git-logs] scummvm master -> 742b675e61e3e21592c617b5f5c279556a5af7f6
aquadran
noreply at scummvm.org
Thu Sep 25 19:35:25 UTC 2025
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .
Summary:
742b675e61 WINTERMUTE: Small code improvement
Commit: 742b675e61e3e21592c617b5f5c279556a5af7f6
https://github.com/scummvm/scummvm/commit/742b675e61e3e21592c617b5f5c279556a5af7f6
Author: PaweÅ KoÅodziejski (aquadran at gmail.com)
Date: 2025-09-25T21:35:21+02:00
Commit Message:
WINTERMUTE: Small code improvement
Changed paths:
engines/wintermute/base/base_file_manager.cpp
diff --git a/engines/wintermute/base/base_file_manager.cpp b/engines/wintermute/base/base_file_manager.cpp
index 67567eba738..b2e207387ab 100644
--- a/engines/wintermute/base/base_file_manager.cpp
+++ b/engines/wintermute/base/base_file_manager.cpp
@@ -438,7 +438,7 @@ int BaseFileManager::listMatchingFiles(Common::StringArray &list, const Common::
//////////////////////////////////////////////////////////////////////////
Common::SeekableReadStream *BaseFileManager::openFile(const Common::String &filename, bool absPathWarning, bool keepTrackOf) {
- if (strcmp(filename.c_str(), "") == 0) {
+ if (filename.empty()) {
return nullptr;
}
debugC(kWintermuteDebugFileAccess, "Open file %s", filename.c_str());
@@ -453,7 +453,7 @@ Common::SeekableReadStream *BaseFileManager::openFile(const Common::String &file
//////////////////////////////////////////////////////////////////////////
Common::WriteStream *BaseFileManager::openFileForWrite(const Common::String &filename) {
- if (strcmp(filename.c_str(), "") == 0) {
+ if (filename.empty()) {
return nullptr;
}
debugC(kWintermuteDebugFileAccess, "Open file %s for write", filename.c_str());
More information about the Scummvm-git-logs
mailing list