Add an explicit keyword.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106538 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman 2010-06-22 13:53:29 +00:00
parent 9d4588ffad
commit 455164bdff

View File

@ -170,7 +170,7 @@ public:
class FileCloser {
int FD;
public:
FileCloser(int FD) : FD(FD) {}
explicit FileCloser(int FD) : FD(FD) {}
~FileCloser() { ::close(FD); }
};
}