]> sigrok.org Git - libsigrok.git/commit
C++: Use move() and avoid passing containers by value
authorDaniel Elstner <redacted>
Sun, 11 Oct 2015 01:12:02 +0000 (03:12 +0200)
committerDaniel Elstner <redacted>
Mon, 26 Oct 2015 03:06:12 +0000 (04:06 +0100)
commitd370545d6071690e7a8cc747db1134ced091e0de
tree0680cf281a94b60d1778ca919df8ee83c8db943e
parent211cc97471b2b837dbd4a78e796d61cea58a1b04
C++: Use move() and avoid passing containers by value

Make use of std::move() to transfer arguments passed in by value.
Take complex container arguments by const reference, as passing
those by value is rather unorthodox even for C++11 style code.
bindings/cxx/classes.cpp
bindings/cxx/include/libsigrokcxx/libsigrokcxx.hpp