projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make wxSingleChoiceDialog::GetSelectionData() const.
[wxWidgets.git]
/
include
/
wx
/
ffile.h
diff --git
a/include/wx/ffile.h
b/include/wx/ffile.h
index 58aca44eafa46d6341b6ebb0387aed30fa2130f5..861f49654746fdd6c6ac05702eafe41265bc6361 100644
(file)
--- a/
include/wx/ffile.h
+++ b/
include/wx/ffile.h
@@
-37,13
+37,13
@@
public:
// def ctor
wxFFile() { m_fp = NULL; }
// open specified file (may fail, use IsOpened())
// def ctor
wxFFile() { m_fp = NULL; }
// open specified file (may fail, use IsOpened())
- wxFFile(const wx
Char *filename, const wxChar *mode = _
T("r"));
+ wxFFile(const wx
String& filename, const wxString& mode = wx
T("r"));
// attach to (already opened) file
wxFFile(FILE *lfp) { m_fp = lfp; }
// open/close
// open a file (existing or not - the mode controls what happens)
// attach to (already opened) file
wxFFile(FILE *lfp) { m_fp = lfp; }
// open/close
// open a file (existing or not - the mode controls what happens)
- bool Open(const wx
Char *filename, const wxChar *mode = _
T("r"));
+ bool Open(const wx
String& filename, const wxString& mode = wx
T("r"));
// closes the opened file (this is a NOP if not opened)
bool Close();
// closes the opened file (this is a NOP if not opened)
bool Close();
@@
-62,12
+62,7
@@
public:
// returns the number of bytes written
size_t Write(const void *pBuf, size_t nCount);
// returns true on success
// returns the number of bytes written
size_t Write(const void *pBuf, size_t nCount);
// returns true on success
- bool Write(const wxString& s, const wxMBConv& conv = wxConvAuto())
- {
- const wxWX2MBbuf buf = s.mb_str(conv);
- size_t size = strlen(buf);
- return Write((const char *)buf, size) == size;
- }
+ bool Write(const wxString& s, const wxMBConv& conv = wxConvAuto());
// flush data not yet written
bool Flush();
// flush data not yet written
bool Flush();