The following commit has been merged in the master branch:
commit 660a5a94ad204d15d38e0e4488439d2b4f05b761
Author: Andrei Zavada <[email protected]>
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

_______________________________________________
debian-med-commit mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-med-commit

Reply via email to