diff options
author | Dan Gohman <gohman@apple.com> | 2010-06-22 13:53:29 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-06-22 13:53:29 +0000 |
commit | 455164bdff2ea20ac43a26388a7bea760581708d (patch) | |
tree | ebf1fd75bb9a7873feef5f4e6046431363c6a66d /lib/Support/MemoryBuffer.cpp | |
parent | 9d4588ffadfdf6c190758200b2ca69742f46d239 (diff) |
Add an explicit keyword.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106538 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/MemoryBuffer.cpp')
-rw-r--r-- | lib/Support/MemoryBuffer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/MemoryBuffer.cpp b/lib/Support/MemoryBuffer.cpp index ac79518903..e8c34da49b 100644 --- a/lib/Support/MemoryBuffer.cpp +++ b/lib/Support/MemoryBuffer.cpp @@ -170,7 +170,7 @@ public: class FileCloser { int FD; public: - FileCloser(int FD) : FD(FD) {} + explicit FileCloser(int FD) : FD(FD) {} ~FileCloser() { ::close(FD); } }; } |