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
@@ -16,7 +16,6 @@ namespace coreutils {
|
||||
class File {
|
||||
|
||||
public:
|
||||
// File(std::string fileName, int mode, int authority);
|
||||
File(ZString fileName, int mode = O_RDONLY, int authority = 0664);
|
||||
~File();
|
||||
void setBufferSize(size_t size);
|
||||
@@ -30,10 +29,10 @@ namespace coreutils {
|
||||
size_t size;
|
||||
bool eof();
|
||||
|
||||
std::string fileName;
|
||||
coreutils::ZString fileName;
|
||||
|
||||
private:
|
||||
void open(std::string fileName, int mode, int authority);
|
||||
void open(coreutils::ZString fileName, int mode, int authority);
|
||||
int fd;
|
||||
coreutils::ZString zstring;
|
||||
bool mEof = false;
|
||||
|
||||
Reference in new issue
Block a user