[med-svn] [aghermann] 04/08: bring code up to g++-4.9 standard C++ requirements
andrei zavada
hmmr-guest at moszumanska.debian.org
Wed May 14 21:23:32 UTC 2014
This is an automated email from the git hooks/post-receive script.
hmmr-guest pushed a commit to branch master
in repository aghermann.
commit e97e1091fc3a46fbe7f047ce7f1cee81ff1beb16
Author: Andrei Zavada <hmmr at ra>
Date: Wed May 14 14:00:26 2014 +0300
bring code up to g++-4.9 standard C++ requirements
---
upstream/src/aghermann/rk1968/rk1968.cc | 5 +++--
upstream/src/aghermann/ui/sf/d/phasediff.cc | 1 +
upstream/src/libsigproc/sigproc.hh | 4 ++++
3 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/upstream/src/aghermann/rk1968/rk1968.cc b/upstream/src/aghermann/rk1968/rk1968.cc
index 8f10a9a..6fa2808 100644
--- a/upstream/src/aghermann/rk1968/rk1968.cc
+++ b/upstream/src/aghermann/rk1968/rk1968.cc
@@ -379,10 +379,11 @@ host_get_data( lua_State *L)
auto sr = R.F().samplerate(R.h());
auto raw_profile = sigproc::raw_signal_profile<TFloat>(
- {R.F().get_region_filtered_smpl(
+ sigproc::SSignalRef<TFloat> (
+ R.F().get_region_filtered_smpl(
R.h(),
p * R.pagesize() * sr, (p+1) * R.pagesize() * sr),
- sr},
+ sr),
dh, dt);
if ( !lua_checkstack( L, raw_profile.size()) )
diff --git a/upstream/src/aghermann/ui/sf/d/phasediff.cc b/upstream/src/aghermann/ui/sf/d/phasediff.cc
index 424f813..8173feb 100644
--- a/upstream/src/aghermann/ui/sf/d/phasediff.cc
+++ b/upstream/src/aghermann/ui/sf/d/phasediff.cc
@@ -9,6 +9,7 @@
* License: GPL
*/
+#include <memory>
#include "common/lang.hh"
#include "aghermann/ui/misc.hh"
#include "aghermann/ui/mw/mw.hh"
diff --git a/upstream/src/libsigproc/sigproc.hh b/upstream/src/libsigproc/sigproc.hh
index 484212c..6fe4e2f 100644
--- a/upstream/src/libsigproc/sigproc.hh
+++ b/upstream/src/libsigproc/sigproc.hh
@@ -90,6 +90,10 @@ struct SSignalRef {
const valarray<T>&
signal;
size_t samplerate;
+ SSignalRef<T> (const valarray<T>& signal_, size_t samplerate_)
+ : signal (signal_),
+ samplerate (samplerate_)
+ {}
};
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/aghermann.git
More information about the debian-med-commit
mailing list