Modified ifNext to only take the ZString parameter and let C++ do the conversions.

This commit is contained in:
Brad Arant committed 2024-10-30 08:36:30 -07:00
1 parent d0239074a4
commit 3eb1f5954a
4 files changed
+15 -20

No files matched your search

+2 -6
View File
@@ -9,15 +9,11 @@
namespace coreutils {
// File::File(std::string fileName, int mode, int authority) {
// open(fileName, mode, authority);
// }
File::File(coreutils::ZString fileName, int mode, int authority) {
open(fileName.str(), mode, authority);
open(fileName, mode, authority);
}
void File::open(std::string fileName, int mode, int authority) {
void File::open(coreutils::ZString fileName, int mode, int authority) {
this->fileName = fileName;