| Index: base/process/launch_posix.cc
|
| diff --git a/base/process/launch_posix.cc b/base/process/launch_posix.cc
|
| index daa055dfee9ef667f4d09d87bde76e4d98fb4f51..84a05d61105e9b0cd4980fb66724e09a3887c3ae 100644
|
| --- a/base/process/launch_posix.cc
|
| +++ b/base/process/launch_posix.cc
|
| @@ -181,16 +181,16 @@ void ResetChildSignalHandlersToDefaults(void) {
|
|
|
| } // anonymous namespace
|
|
|
| -// A class to handle auto-closing of DIR*'s.
|
| -class ScopedDIRClose {
|
| - public:
|
| +// Functor for |ScopedDIR| (below).
|
| +struct ScopedDIRClose {
|
| inline void operator()(DIR* x) const {
|
| - if (x) {
|
| + if (x)
|
| closedir(x);
|
| - }
|
| }
|
| };
|
| -typedef scoped_ptr_malloc<DIR, ScopedDIRClose> ScopedDIR;
|
| +
|
| +// Automatically closes |DIR*|s.
|
| +typedef scoped_ptr<DIR, ScopedDIRClose> ScopedDIR;
|
|
|
| #if defined(OS_LINUX)
|
| static const char kFDDir[] = "/proc/self/fd";
|
|
|