diff options
author | Chris Lattner <sabre@nondot.org> | 2003-05-22 21:59:35 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-05-22 21:59:35 +0000 |
commit | 01e770a9e556c2b509cbcec83b000bbe9b98053f (patch) | |
tree | de9d318aea4fc764114f0f90308533f4f130bf68 /lib/Support/Signals.cpp | |
parent | 6b77ec415662b92ea49e614ee568be556ea27899 (diff) |
Add using declarations
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6305 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Signals.cpp')
-rw-r--r-- | lib/Support/Signals.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Support/Signals.cpp b/lib/Support/Signals.cpp index 3b3468350d..38fb9ddb81 100644 --- a/lib/Support/Signals.cpp +++ b/lib/Support/Signals.cpp @@ -11,9 +11,8 @@ #include <cstdlib> #include <cstdio> #include <signal.h> -using std::string; -static std::vector<string> FilesToRemove; +static std::vector<std::string> FilesToRemove; // IntSigs - Signals that may interrupt the program at any time. static const int IntSigs[] = { @@ -48,7 +47,7 @@ static void SignalHandler(int Sig) { static void RegisterHandler(int Signal) { signal(Signal, SignalHandler); } // RemoveFileOnSignal - The public API -void RemoveFileOnSignal(const string &Filename) { +void RemoveFileOnSignal(const std::string &Filename) { FilesToRemove.push_back(Filename); std::for_each(IntSigs, IntSigsEnd, RegisterHandler); |