aboutsummaryrefslogtreecommitdiff
path: root/src/dsd2pcm/dsd2pcm.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/dsd2pcm/dsd2pcm.hpp')
-rw-r--r--src/dsd2pcm/dsd2pcm.hpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/dsd2pcm/dsd2pcm.hpp b/src/dsd2pcm/dsd2pcm.hpp
index b1b2ae1c..8f3f5519 100644
--- a/src/dsd2pcm/dsd2pcm.hpp
+++ b/src/dsd2pcm/dsd2pcm.hpp
@@ -13,11 +13,9 @@ class dxd
{
dsd2pcm_ctx *handle;
public:
- dxd() : handle(dsd2pcm_init())
- { if (!handle) throw std::runtime_error("wtf?!"); }
+ dxd() : handle(dsd2pcm_init()) {}
- dxd(dxd const& x) : handle(dsd2pcm_clone(x.handle))
- { if (!handle) throw std::runtime_error("wtf?!"); }
+ dxd(dxd const& x) : handle(dsd2pcm_clone(x.handle)) {}
~dxd() { dsd2pcm_destroy(handle); }