From c4ed12bbd14e22825c2043f94ac5aae4014d4d10 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Thu, 11 Mar 2010 21:59:25 +0000 Subject: [PATCH] Code cleanup --- src/misc.h | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) 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; }