diff options
author | 2014-05-19 16:49:03 -0700 | |
---|---|---|
committer | 2014-05-19 22:27:39 -0700 | |
commit | 700a402244a1a423da4f3ba8032459f4b65fa18f (patch) | |
tree | 4c22fcda04d271bd55a37aff30650214af17a90c /runtime/os_linux.cc | |
parent | 047c11adcbcbc0bcf210defdfcbada763961ffee (diff) |
Now we have a proper C++ library, use std::unique_ptr.
Also remove the Android.libcxx.mk and other bits of stlport compatibility
mechanics.
Change-Id: Icdf7188ba3c79cdf5617672c1cfd0a68ae596a61
Diffstat (limited to 'runtime/os_linux.cc')
-rw-r--r-- | runtime/os_linux.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/os_linux.cc b/runtime/os_linux.cc index d9a5813f7a..e4403d7932 100644 --- a/runtime/os_linux.cc +++ b/runtime/os_linux.cc @@ -16,14 +16,14 @@ #include "os.h" -#include <cstddef> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> +#include <cstddef> +#include <memory> #include "base/logging.h" #include "base/unix_file/fd_file.h" -#include "UniquePtrCompat.h" namespace art { @@ -41,7 +41,7 @@ File* OS::CreateEmptyFile(const char* name) { File* OS::OpenFileWithFlags(const char* name, int flags) { CHECK(name != NULL); - UniquePtr<File> file(new File); + std::unique_ptr<File> file(new File); if (!file->Open(name, flags, 0666)) { return NULL; } |