aboutsummaryrefslogtreecommitdiffstats
path: root/src/dsd2pcm/dsd2pcm.hpp
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-02 19:12:27 +0100
committerMax Kellermann <max@duempel.org>2013-01-02 19:12:27 +0100
commita6371e2e664e4bc1ff78d881cfd2c9b5fa3909e8 (patch)
tree39da37ce46f6874f17267b00de099e87a235486c /src/dsd2pcm/dsd2pcm.hpp
parent7768baa4d13ca508080bb95fe58fe62e7ef69ee9 (diff)
downloadmpd-a6371e2e664e4bc1ff78d881cfd2c9b5fa3909e8.tar.gz
mpd-a6371e2e664e4bc1ff78d881cfd2c9b5fa3909e8.tar.xz
mpd-a6371e2e664e4bc1ff78d881cfd2c9b5fa3909e8.zip
configure.ac: disable C++ exceptions
We don't use exceptions currently. Since allowing exceptions means a lot of overhead, this commit disables the feature.
Diffstat (limited to '')
-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 b1b2ae1c5..8f3f55197 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); }