diff options
-rw-r--r-- | sigc++/sigc++.h | 3 | ||||
-rw-r--r-- | tests/test_bind.cc | 2 | ||||
-rw-r--r-- | tests/test_bind_refptr.cc | 3 | ||||
-rw-r--r-- | tests/test_cpp11_lambda.cc | 2 | ||||
-rw-r--r-- | tests/test_track_obj.cc | 4 |
5 files changed, 8 insertions, 6 deletions
diff --git a/sigc++/sigc++.h b/sigc++/sigc++.h index 5646d3d..b0b4ebb 100644 --- a/sigc++/sigc++.h +++ b/sigc++/sigc++.h @@ -36,7 +36,8 @@ * See also the * <a href="https://developer.gnome.org/libsigc++-tutorial/stable/">libsigc++ tutorial</a>, * the <a href="https://libsigcplusplus.github.io/libsigcplusplus/">libsigc++ website</a>, and - * the <a href="https://developer.gnome.org/gtkmm-tutorial/unstable/chapter-signals.html">Signals appendix of the Programming with gtkmm book</a>. + * the <a href="https://developer.gnome.org/gtkmm-tutorial/unstable/chapter-signals.html">Signals + * appendix of the Programming with gtkmm book</a>. * * @section features Features * diff --git a/tests/test_bind.cc b/tests/test_bind.cc index 0cd192c..fa8537b 100644 --- a/tests/test_bind.cc +++ b/tests/test_bind.cc @@ -70,7 +70,7 @@ struct book : public sigc::trackable book& operator=(book&&) = delete; std::string& get_name() { return name_; } - operator std::string&() { return get_name(); } + operator std::string &() { return get_name(); } private: std::string name_; diff --git a/tests/test_bind_refptr.cc b/tests/test_bind_refptr.cc index 48b9d3d..3d24e31 100644 --- a/tests/test_bind_refptr.cc +++ b/tests/test_bind_refptr.cc @@ -197,7 +197,8 @@ private: // If it would come after them it wouldn't be inlined. template<typename T_CppObject> -inline T_CppObject* RefPtr<T_CppObject>::operator->() const +inline T_CppObject* +RefPtr<T_CppObject>::operator->() const { return pCppObject_; } diff --git a/tests/test_cpp11_lambda.cc b/tests/test_cpp11_lambda.cc index b9e47ca..a8e90b2 100644 --- a/tests/test_cpp11_lambda.cc +++ b/tests/test_cpp11_lambda.cc @@ -88,7 +88,7 @@ egon(std::string& str) struct book : public sigc::trackable { explicit book(const std::string& name) : name_(name) {} - operator std::string&() { return name_; } + operator std::string &() { return name_; } std::string name_; }; diff --git a/tests/test_track_obj.cc b/tests/test_track_obj.cc index aefdb07..cf18b7b 100644 --- a/tests/test_track_obj.cc +++ b/tests/test_track_obj.cc @@ -40,8 +40,8 @@ std::ostringstream result_stream; struct book : public sigc::trackable { explicit book(const std::string& name) : name_(name) {} - operator std::string&() { return name_; } - operator const std::string&() const { return name_; } + operator std::string &() { return name_; } + operator const std::string &() const { return name_; } std::string name_; }; |