Bring in google3-style DISALLOW_* macros.

I've been meaning to do this for a very long time...

Change-Id: Ia8c16eee7c026c3c9505399948485fb778fb0152
This commit is contained in:
Elliott Hughes
2014-05-09 19:12:08 -07:00
parent b2c3c803f0
commit 8eac9af24e
8 changed files with 56 additions and 27 deletions

View File

@@ -19,6 +19,8 @@
#include <dirent.h>
#include "private/bionic_macros.h"
class ScopedReaddir {
public:
ScopedReaddir(const char* path) {
@@ -42,9 +44,7 @@ class ScopedReaddir {
private:
DIR* dir_;
// Disallow copy and assignment.
ScopedReaddir(const ScopedReaddir&);
void operator=(const ScopedReaddir&);
DISALLOW_COPY_AND_ASSIGN(ScopedReaddir);
};
#endif // SCOPED_READDIR_H