diff --git a/File.cpp b/File.cpp index e4caa25..1d5e6f5 100644 --- a/File.cpp +++ b/File.cpp @@ -9,11 +9,11 @@ namespace coreutils { - File::File(std::string fileName, int mode, int authority) { - open(fileName, mode, authority); - } +// File::File(std::string fileName, int mode, int authority) { +// open(fileName, mode, authority); +// } - File::File(coreutils::ZString &fileName, int mode, int authority) { + File::File(coreutils::ZString fileName, int mode, int authority) { open(fileName.str(), mode, authority); } diff --git a/File.h b/File.h index 73f5e2f..09d2db3 100644 --- a/File.h +++ b/File.h @@ -16,8 +16,8 @@ namespace coreutils { class File { public: - File(std::string fileName, int mode, int authority); - File(ZString &fileName, int mode = O_RDONLY, int authority = 0664); +// File(std::string fileName, int mode, int authority); + File(ZString fileName, int mode = O_RDONLY, int authority = 0664); ~File(); void setBufferSize(size_t size); int read();