Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: EEPROMWrite Full-Project
Fork of mbed-src by
Diff: common/LocalFileSystem.cpp
- Revision:
- 212:34d62c0b2af6
- Parent:
- 13:0645d8841f51
diff -r fb8edfff6ae1 -r 34d62c0b2af6 common/LocalFileSystem.cpp
--- a/common/LocalFileSystem.cpp Sun May 25 08:00:07 2014 +0100
+++ b/common/LocalFileSystem.cpp Mon May 26 18:15:07 2014 +0100
@@ -107,9 +107,7 @@
return fh;
}
-LocalFileHandle::LocalFileHandle(FILEHANDLE fh) {
- _fh = fh;
- pos = 0;
+LocalFileHandle::LocalFileHandle(FILEHANDLE fh) : _fh(fh), pos(0) {
}
int LocalFileHandle::close() {
@@ -163,8 +161,7 @@
struct dirent cur_entry;
XFINFO info;
- LocalDirHandle() {
- info.fileID = 0;
+ LocalDirHandle() : cur_entry(), info() {
}
virtual int closedir() {
