diff --git a/src/misc.h b/src/misc.h index bccfb0da2..cfc7c61d2 100644 --- a/src/misc.h +++ b/src/misc.h @@ -92,19 +92,14 @@ public: static inline QString toQString(sha1_hash hash) { std::ostringstream o; - if(!(o<>x)) { - throw std::runtime_error("::fromString()"); - } + sha1_hash x; + i>>x; return x; }