[libsigcplusplus] Make a comment easier to reformat with clang-format.



commit a6900fb40ae8a89b7447316023d2185c1786ed4b
Author: Murray Cumming <murrayc murrayc com>
Date:   Thu Mar 31 15:12:21 2016 +0200

    Make a comment easier to reformat with clang-format.

 sigc++/signal.h |   14 ++++++++++----
 1 files changed, 10 insertions(+), 4 deletions(-)
---
diff --git a/sigc++/signal.h b/sigc++/signal.h
index 47f81ad..f880ddf 100644
--- a/sigc++/signal.h
+++ b/sigc++/signal.h
@@ -684,8 +684,11 @@ struct signal_emit<T_return, void, T_arg...>
           break;
 
       if (it == slots.end())
-        return T_return(); // note that 'T_return r_();' doesn't work => define 'r_' after this line
-                           // and initialize as follows:
+      {
+        // note that 'T_return r_();' doesn't work => define 'r_' after this line
+        // and initialize as follows:
+        return T_return();
+      }
 
       r_ = (reinterpret_cast<call_type>(it->rep_->call_))(it->rep_, _A_a...);
       for (++it; it != slots.end(); ++it)
@@ -724,8 +727,11 @@ struct signal_emit<T_return, void, T_arg...>
           break;
 
       if (it == reverse_iterator_type(slots.begin()))
-        return T_return(); // note that 'T_return r_();' doesn't work => define 'r_' after this line
-                           // and initialize as follows:
+      {
+        // note that 'T_return r_();' doesn't work => define 'r_' after this line
+        // and initialize as follows:
+        return T_return();
+      }
 
       r_ = (reinterpret_cast<call_type>(it->rep_->call_))(it->rep_, _A_a...);
       for (++it; it != reverse_iterator_type(slots.begin()); ++it)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]