summaryrefslogtreecommitdiff
path: root/ext/drampower/src/Utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'ext/drampower/src/Utils.h')
-rw-r--r--ext/drampower/src/Utils.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/drampower/src/Utils.h b/ext/drampower/src/Utils.h
index 4aa8bb220..80f4390c7 100644
--- a/ext/drampower/src/Utils.h
+++ b/ext/drampower/src/Utils.h
@@ -41,9 +41,7 @@
#include <string>
#include <sstream>
#include <stdexcept>
-#include <typeinfo>
-#define MILLION 1000000
template<typename T>
T fromString(const std::string& s,
@@ -54,7 +52,7 @@ throw(std::runtime_error)
T t;
if (!(is >> f >> t)) {
- throw std::runtime_error("fromString cannot convert " + s);
+ throw std::runtime_error("Cannot convert string");
}
return t;