mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Pass std::string references to output functions
This commit is contained in:
@@ -362,7 +362,7 @@ int main(int argc, char *argv[]) {
|
||||
}
|
||||
}
|
||||
|
||||
if (targetFileName.empty() && objectName)
|
||||
if (targetFileName.empty() && !objectName.empty())
|
||||
targetFileName = objectName;
|
||||
|
||||
if (argc == musl_optind) {
|
||||
@@ -413,7 +413,7 @@ int main(int argc, char *argv[]) {
|
||||
return 0;
|
||||
|
||||
// If no path specified, don't write file
|
||||
if (objectName != nullptr)
|
||||
if (!objectName.empty())
|
||||
out_WriteObject();
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user