test

Fork of mbed-dev by mbed official

Revision:
169:9672193075cf
Parent:
168:e84263d55307
diff -r e84263d55307 -r 9672193075cf platform/FileBase.h
--- a/platform/FileBase.h	Wed Jun 21 17:46:44 2017 +0100
+++ b/platform/FileBase.h	Thu Jul 06 15:42:05 2017 +0100
@@ -24,6 +24,7 @@
 #include "platform/platform.h"
 #include "platform/SingletonPtr.h"
 #include "platform/PlatformMutex.h"
+#include "platform/NonCopyable.h"
 
 namespace mbed {
 /** \addtogroup platform */
@@ -39,7 +40,7 @@
  * @class FileBase
  * @ingroup platform
  */
-class FileBase {
+class FileBase : private NonCopyable<FileBase> {
 public:
     FileBase(const char *name, PathType t);
     virtual ~FileBase();
@@ -59,8 +60,6 @@
     FileBase   *_next;
     const char * const _name;
     const PathType _path_type;
-    FileBase(const FileBase&);
-    FileBase & operator = (const FileBase&);
 };
 
 } // namespace mbed