[med-svn] [SCM] aghermann branch, master, updated. 3603e7ef1289f9ec79a3eb415b6d141166e9498a
Andrei Zavada
johnhommer at gmail.com
Sun Jul 14 22:28:20 UTC 2013
The following commit has been merged in the master branch:
commit 660a5a94ad204d15d38e0e4488439d2b4f05b761
Author: Andrei Zavada <johnhommer at gmail.com>
Date: Thu Jul 11 02:04:02 2013 +0300
even straighter CTypedSource (CTypedSource&& rv)
diff --git a/src/libsigfile/source.cc b/src/libsigfile/source.cc
index f5ffe73..cceb968 100644
--- a/src/libsigfile/source.cc
+++ b/src/libsigfile/source.cc
@@ -62,22 +62,8 @@ CTypedSource::
CTypedSource (CTypedSource&& rv)
: CHypnogram (move(rv))
{
- switch ( _type = rv._type ) {
- case TType::ascii:
- _obj = static_cast<CTSVFile*> (rv._obj);
- break;
- case TType::edf:
- _obj = static_cast<CEDFFile*> (rv._obj);
- break;
-
- case TType::bin:
- throw invalid_argument ("Source type 'bin' not yet supported");
- case TType::unrecognised:
- throw invalid_argument ("Unrecognised source type");
- default:
- throw invalid_argument ("Bad source type");
- }
-
+ _type = rv._type;
+ _obj = rv._obj;
rv._obj = nullptr;
}
--
Sleep experiment manager
More information about the debian-med-commit
mailing list