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:
@@ -19,6 +19,7 @@
|
||||
#include <errno.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "private/bionic_macros.h"
|
||||
#include "private/ScopedReaddir.h"
|
||||
|
||||
// A smart pointer to the scandir dirent**.
|
||||
@@ -84,9 +85,7 @@ class ScandirResult {
|
||||
return copy;
|
||||
}
|
||||
|
||||
// Disallow copy and assignment.
|
||||
ScandirResult(const ScandirResult&);
|
||||
void operator=(const ScandirResult&);
|
||||
DISALLOW_COPY_AND_ASSIGN(ScandirResult);
|
||||
};
|
||||
|
||||
int scandir(const char* dirname, dirent*** name_list,
|
||||
|
Reference in New Issue
Block a user