Modified ifNext to only take the ZString parameter and let C++ do the conversions.
This commit is contained in:
1 parent
d0239074a4
commit
3eb1f5954a
4 files changed
+15
-20
No files matched your search
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user