summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2017-05-01 06:23:21 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2017-05-01 06:23:21 +0200
commitbfce4874a0410f8f6521875d7e975f80d05544d4 (patch)
tree0e3d19bfa756a12da41dc1b132e96b31fd31541d /src
parentaabba6c6b56edbd4f64913af33651a2f2a641976 (diff)
downloaddabmod-bfce4874a0410f8f6521875d7e975f80d05544d4.tar.gz
dabmod-bfce4874a0410f8f6521875d7e975f80d05544d4.tar.bz2
dabmod-bfce4874a0410f8f6521875d7e975f80d05544d4.zip
Reindent stringtrim in OutputUHD
Diffstat (limited to 'src')
-rw-r--r--src/OutputUHD.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/OutputUHD.cpp b/src/OutputUHD.cpp
index e835d6e..d78c4bf 100644
--- a/src/OutputUHD.cpp
+++ b/src/OutputUHD.cpp
@@ -56,8 +56,12 @@ typedef std::complex<float> complexf;
std::string stringtrim(const std::string &s)
{
- auto wsfront = std::find_if_not(s.begin(), s.end(), [](int c){return std::isspace(c);} );
- return std::string(wsfront, std::find_if_not(s.rbegin(), std::string::const_reverse_iterator(wsfront), [](int c){return std::isspace(c);} ).base());
+ auto wsfront = std::find_if_not(s.begin(), s.end(),
+ [](int c){ return std::isspace(c);} );
+ return std::string(wsfront,
+ std::find_if_not(s.rbegin(),
+ std::string::const_reverse_iterator(wsfront),
+ [](int c){ return std::isspace(c);} ).base());
}
void uhd_msg_handler(uhd::msg::type_t type, const std::string &msg)