summaryrefslogtreecommitdiffstats
path: root/src/line_printer.h
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2013-04-18 18:27:20 (GMT)
committerEvan Martin <martine@danga.com>2013-04-18 18:27:24 (GMT)
commit9b6b1fd44a589c3725947280ff5a2ce8fc50a387 (patch)
tree23b40282376cbc820525d951d7f33de795daa7fa /src/line_printer.h
parent877fdb50d1599ed9a0d2035a95c5a5b811be20ee (diff)
downloadNinja-9b6b1fd44a589c3725947280ff5a2ce8fc50a387.zip
Ninja-9b6b1fd44a589c3725947280ff5a2ce8fc50a387.tar.gz
Ninja-9b6b1fd44a589c3725947280ff5a2ce8fc50a387.tar.bz2
drop std:: qualifiers on more stl datatypes
We "using namespace std" anywhere we need a std::string or a std::vector.
Diffstat (limited to 'src/line_printer.h')
-rw-r--r--src/line_printer.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/line_printer.h b/src/line_printer.h
index 4226c92..c292464 100644
--- a/src/line_printer.h
+++ b/src/line_printer.h
@@ -16,6 +16,7 @@
#define NINJA_LINE_PRINTER_H_
#include <string>
+using namespace std;
/// Prints lines of text, possibly overprinting previously printed lines
/// if the terminal supports it.
@@ -32,10 +33,10 @@ class LinePrinter {
};
/// Overprints the current line. If type is ELIDE, elides to_print to fit on
/// one line.
- void Print(std::string to_print, LineType type);
+ void Print(string to_print, LineType type);
/// Prints a string on a new line, not overprinting previous output.
- void PrintOnNewLine(const std::string& to_print);
+ void PrintOnNewLine(const string& to_print);
private:
/// Whether we can do fancy terminal control codes.