Blob Blame History Raw
diff --git a/doc/hamprop.cc b/doc/hamprop.cc
index 36f3169..f109e64 100644
--- a/doc/hamprop.cc
+++ b/doc/hamprop.cc
@@ -315,9 +315,7 @@ Compute Thrust from Shaft Horse Power, or Vice Versa.")
 			if (args(i).is_scalar_type())
 				continue;
 			if (!args(i).is_matrix_type()) {
-				std::ostringstream oss;
-				oss << "hamprop: invalid argument type (argument " << (i + 1) << ')';
-				error(oss.str().c_str());
+				error("hamprop: invalid argument type (argument %d)", (i + 1));
 				return retval;
 			}
 			if (dvunset) {
@@ -326,9 +324,7 @@ Compute Thrust from Shaft Horse Power, or Vice Versa.")
 				continue;
 			}
 			if (args(i).dims() != dv) {
-				std::ostringstream oss;
-				oss << "hamprop: matrix dimensions must match (argument " << (i + 1) << ')';
-				error(oss.str().c_str());
+				error("hamprop: matrix dimensions must match (argument %d)", (i + 1));
 				return retval;
 			}
 		}