commit | 455164bdff2ea20ac43a26388a7bea760581708d | [log] [tgz] |
---|---|---|
author | Dan Gohman <gohman@apple.com> | Tue Jun 22 13:53:29 2010 +0000 |
committer | Dan Gohman <gohman@apple.com> | Tue Jun 22 13:53:29 2010 +0000 |
tree | ebf1fd75bb9a7873feef5f4e6046431363c6a66d | |
parent | 9d4588ffadfdf6c190758200b2ca69742f46d239 [diff] [blame] |
Add an explicit keyword. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106538 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Support/MemoryBuffer.cpp b/lib/Support/MemoryBuffer.cpp index ac79518..e8c34da 100644 --- a/lib/Support/MemoryBuffer.cpp +++ b/lib/Support/MemoryBuffer.cpp
@@ -170,7 +170,7 @@ class FileCloser { int FD; public: - FileCloser(int FD) : FD(FD) {} + explicit FileCloser(int FD) : FD(FD) {} ~FileCloser() { ::close(FD); } }; }