projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Declarations missing from VC++ 5
[wxWidgets.git]
/
src
/
common
/
file.cpp
diff --git
a/src/common/file.cpp
b/src/common/file.cpp
index a6aa633b5aced39764802518ad4ff4dd7d8214ac..b44087c38b4725a910b5013b6a36c6783a882cd8 100644
(file)
--- a/
src/common/file.cpp
+++ b/
src/common/file.cpp
@@
-213,11
+213,9
@@
bool wxFile::Create(const wxChar *szFileName, bool bOverwrite, int accessMode)
wxLogSysError(_("can't create file '%s'"), szFileName);
return false;
}
wxLogSysError(_("can't create file '%s'"), szFileName);
return false;
}
- else
- {
- Attach(fd);
- return true;
- }
+
+ Attach(fd);
+ return true;
}
// open the file
}
// open the file
@@
-267,10
+265,9
@@
bool wxFile::Open(const wxChar *szFileName, OpenMode mode, int accessMode)
wxLogSysError(_("can't open file '%s'"), szFileName);
return false;
}
wxLogSysError(_("can't open file '%s'"), szFileName);
return false;
}
- else {
- Attach(fd);
- return true;
- }
+
+ Attach(fd);
+ return true;
}
// close
}
// close