[med-svn] [aghermann] 08/60: don't move() retval from SCachedEnvelope::centre()

andrei zavada hmmr-guest at alioth.debian.org
Mon Nov 4 23:49:51 UTC 2013


This is an automated email from the git hooks/post-receive script.

hmmr-guest pushed a commit to branch WIP
in repository aghermann.

commit f068386317de1375dbb075a8a197adbbc73c23e5
Author: Andrei Zavada <johnhommer at gmail.com>
Date:   Tue Oct 8 02:18:37 2013 +0300

    don't move() retval from SCachedEnvelope::centre()
---
 upstream/src/libsigproc/sigproc.hh |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/upstream/src/libsigproc/sigproc.hh b/upstream/src/libsigproc/sigproc.hh
index 8ccf90a..c1a0674 100644
--- a/upstream/src/libsigproc/sigproc.hh
+++ b/upstream/src/libsigproc/sigproc.hh
@@ -191,7 +191,8 @@ struct SCachedEnvelope
         centre( double scope_)
                 {
                         operator()( scope_);
-                        return move(mid);
+                        return const_cast<const valarray<T>&>(mid);  // move() is *not* appropriate here
+                }
                 }
 
     private:

-- 
Alioth's /git/debian-med/git-commit-notice on /srv/git.debian.org/git/debian-med/aghermann.git



More information about the debian-med-commit mailing list