Index: gin/arguments.cc |
diff --git a/gin/arguments.cc b/gin/arguments.cc |
index 0a2375cf27aea7180209de8df0f46262c30adc2e..9eedfa3cd9e0250713528e6339edf4d9cd16d53f 100644 |
--- a/gin/arguments.cc |
+++ b/gin/arguments.cc |
@@ -4,7 +4,7 @@ |
#include "gin/arguments.h" |
-#include <sstream> |
+#include "base/strings/stringprintf.h" |
#include "gin/converter.h" |
namespace gin { |
@@ -29,9 +29,8 @@ void Arguments::ThrowError() { |
if (insufficient_arguments_) |
return ThrowTypeError("Insufficient number of arguments."); |
- std::stringstream stream; |
- stream << "Error processing argument " << next_ - 1 << "."; |
- ThrowTypeError(stream.str()); |
+ ThrowTypeError(base::StringPrintf( |
+ "Error processing argument %d.", next_ - 1)); |
} |
void Arguments::ThrowTypeError(const std::string& message) { |