summaryrefslogtreecommitdiffstats
path: root/src/ninja.cc
diff options
context:
space:
mode:
authorTetsuo Kiso <tetsuokiso9@gmail.com>2016-01-10 13:23:35 (GMT)
committerTetsuo Kiso <tetsuokiso9@gmail.com>2016-01-10 13:23:35 (GMT)
commit9c5aded8743ebac5c4f76a26e7fface04058bcda (patch)
tree05b8b61746a987b15d1f49c6a25c8ac1fce6e45b /src/ninja.cc
parentc2e810ca4314f112cb65fabd35583b10136faea2 (diff)
downloadNinja-9c5aded8743ebac5c4f76a26e7fface04058bcda.zip
Ninja-9c5aded8743ebac5c4f76a26e7fface04058bcda.tar.gz
Ninja-9c5aded8743ebac5c4f76a26e7fface04058bcda.tar.bz2
Remove unnecessary `std::`
Diffstat (limited to 'src/ninja.cc')
-rw-r--r--src/ninja.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ninja.cc b/src/ninja.cc
index a73f83c..691afad 100644
--- a/src/ninja.cc
+++ b/src/ninja.cc
@@ -701,7 +701,7 @@ int NinjaMain::ToolUrtle(int argc, char** argv) {
if ('0' <= *p && *p <= '9') {
count = count*10 + *p - '0';
} else {
- for (int i = 0; i < std::max(count, 1); ++i)
+ for (int i = 0; i < max(count, 1); ++i)
printf("%c", *p);
count = 0;
}
@@ -1163,7 +1163,7 @@ int main(int argc, char** argv) {
#if defined(_MSC_VER)
// Set a handler to catch crashes not caught by the __try..__except
// block (e.g. an exception in a stack-unwind-block).
- std::set_terminate(TerminateHandler);
+ set_terminate(TerminateHandler);
__try {
// Running inside __try ... __except suppresses any Windows error
// dialogs for errors such as bad_alloc.