diff options
| author | Mehdi Amini <mehdi.amini@apple.com> | 2016-11-11 04:28:40 +0000 |
|---|---|---|
| committer | Mehdi Amini <mehdi.amini@apple.com> | 2016-11-11 04:28:40 +0000 |
| commit | 41af43092ccc8030bb49cea324d85eecd5ae68a8 (patch) | |
| tree | f30038673dd27f2d4785068fffd510abe4fb23d7 /lldb/source/Host/posix/FileSystem.cpp | |
| parent | e8e98dcb74cd6d297c31c023bfacdf7f28cdaabc (diff) | |
Make the Error class constructor protected
This is forcing to use Error::success(), which is in a wide majority
of cases a lot more readable.
Differential Revision: https://reviews.llvm.org/D26481
llvm-svn: 286561
Diffstat (limited to 'lldb/source/Host/posix/FileSystem.cpp')
| -rw-r--r-- | lldb/source/Host/posix/FileSystem.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Host/posix/FileSystem.cpp b/lldb/source/Host/posix/FileSystem.cpp index aaa53ce07723..0567f60a3cb2 100644 --- a/lldb/source/Host/posix/FileSystem.cpp +++ b/lldb/source/Host/posix/FileSystem.cpp @@ -62,7 +62,7 @@ Error FileSystem::MakeDirectory(const FileSpec &file_spec, } break; case EEXIST: { if (file_spec.IsDirectory()) - return Error(); // It is a directory and it already exists + return Error::success(); // It is a directory and it already exists } break; } } @@ -210,7 +210,7 @@ Error FileSystem::ResolveSymbolicLink(const FileSpec &src, FileSpec &dst) { dst = FileSpec(real_path, false); - return Error(); + return Error::success(); } #if defined(__NetBSD__) |
