Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (f3557065787530c3d27d09cb01f6fd0f8552a823)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Vlad Glagolev <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (f3557065787530c3d27d09cb01f6fd0f8552a823)
  • Date: Mon, 27 Apr 2015 12:13:14 -0500

GIT changes to master grimoire by Vlad Glagolev <stealth AT sourcemage.org>:

audio-players/ncmpcpp/cxx11.patch | 32 ++++++++++++++++++++------------
1 file changed, 20 insertions(+), 12 deletions(-)

New commits:
commit f3557065787530c3d27d09cb01f6fd0f8552a823
Author: Vlad Glagolev <stealth AT sourcemage.org>
Commit: Vlad Glagolev <stealth AT sourcemage.org>

ncmpcpp: beauty++

diff --git a/audio-players/ncmpcpp/cxx11.patch
b/audio-players/ncmpcpp/cxx11.patch
index f1daf3a..2535b7c 100644
--- a/audio-players/ncmpcpp/cxx11.patch
+++ b/audio-players/ncmpcpp/cxx11.patch
@@ -1,33 +1,41 @@
--- src/bindings.h.orig 2015-03-02 21:02:17.000000000 +0300
-+++ src/bindings.h 2015-04-27 17:46:42.000000000 +0300
-@@ -77,13 +77,20 @@
++++ src/bindings.h 2015-04-27 19:54:04.000000000 +0300
+@@ -77,13 +77,14 @@
typedef std::vector<Actions::BaseAction *> ActionChain;

template <typename ArgT>
- Binding(ArgT &&actions)
- : m_actions(std::forward<ArgT>(actions)) {
-+ void SuperInit(ArgT &&actions) {
-+ m_actions = std::forward<ArgT>(actions);
- assert(!m_actions.empty());
+- assert(!m_actions.empty());
++ Binding(ArgT &&actions) {
++ super_init(actions);
}
- Binding(Actions::Type at)
- : Binding(ActionChain({&Actions::get(at)})) { }
-
+
-+ template <typename ArgT>
-+ Binding(ArgT &&actions) {
-+ SuperInit(actions);
-+ }
-+
+ Binding(Actions::Type at) {
-+ SuperInit(ActionChain({&Actions::get(at)}));
++ super_init(ActionChain({&Actions::get(at)}));
+ }
+
bool execute() const {
return std::all_of(m_actions.begin(), m_actions.end(),
boost::bind(&Actions::BaseAction::execute, _1)
+@@ -100,6 +101,12 @@
+ }
+
+ private:
++ template <typename ArgT>
++ void super_init(ArgT &&actions) {
++ m_actions = std::forward<ArgT>(actions);
++ assert(!m_actions.empty());
++ }
++
+ ActionChain m_actions;
+ };
+
--- src/utility/conversion.h.orig 2015-03-02 21:02:17.000000000 +0300
-+++ src/utility/conversion.h 2015-04-27 16:29:22.000000000 +0300
++++ src/utility/conversion.h 2015-04-27 19:51:38.000000000 +0300
@@ -41,6 +41,8 @@

struct OutOfBounds : std::exception



  • [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (f3557065787530c3d27d09cb01f6fd0f8552a823), Vlad Glagolev, 04/27/2015

Archive powered by MHonArc 2.6.24.

Top of Page