OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d4588f
)
Add an explicit keyword.
author
Dan Gohman
<gohman@apple.com>
Tue, 22 Jun 2010 13:53:29 +0000
(13:53 +0000)
committer
Dan Gohman
<gohman@apple.com>
Tue, 22 Jun 2010 13:53:29 +0000
(13:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106538
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Support/MemoryBuffer.cpp
patch
|
blob
|
history
diff --git
a/lib/Support/MemoryBuffer.cpp
b/lib/Support/MemoryBuffer.cpp
index
ac79518
..
e8c34da
100644
(file)
--- 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); }
};
}