File tree Expand file tree Collapse file tree 5 files changed +8
-6
lines changed Expand file tree Collapse file tree 5 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 36
36
* See also the
37
37
* <a href="https://developer.gnome.org/libsigc++-tutorial/stable/">libsigc++ tutorial</a>,
38
38
* the <a href="https://libsigcplusplus.github.io/libsigcplusplus/">libsigc++ website</a>, and
39
- * the <a href="https://developer.gnome.org/gtkmm-tutorial/unstable/chapter-signals.html">Signals appendix of the Programming with gtkmm book</a>.
39
+ * the <a href="https://developer.gnome.org/gtkmm-tutorial/unstable/chapter-signals.html">Signals
40
+ * appendix of the Programming with gtkmm book</a>.
40
41
*
41
42
* @section features Features
42
43
*
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ struct book : public sigc::trackable
70
70
book& operator =(book&&) = delete ;
71
71
72
72
std::string& get_name () { return name_; }
73
- operator std::string&() { return get_name (); }
73
+ operator std::string &() { return get_name (); }
74
74
75
75
private:
76
76
std::string name_;
Original file line number Diff line number Diff line change @@ -197,7 +197,8 @@ class RefPtr
197
197
// If it would come after them it wouldn't be inlined.
198
198
199
199
template <typename T_CppObject>
200
- inline T_CppObject* RefPtr<T_CppObject>::operator ->() const
200
+ inline T_CppObject*
201
+ RefPtr<T_CppObject>::operator ->() const
201
202
{
202
203
return pCppObject_;
203
204
}
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ egon(std::string& str)
88
88
struct book : public sigc ::trackable
89
89
{
90
90
explicit book (const std::string& name) : name_(name) {}
91
- operator std::string&() { return name_; }
91
+ operator std::string &() { return name_; }
92
92
std::string name_;
93
93
};
94
94
Original file line number Diff line number Diff line change @@ -40,8 +40,8 @@ std::ostringstream result_stream;
40
40
struct book : public sigc ::trackable
41
41
{
42
42
explicit book (const std::string& name) : name_(name) {}
43
- operator std::string&() { return name_; }
44
- operator const std::string&() const { return name_; }
43
+ operator std::string &() { return name_; }
44
+ operator const std::string &() const { return name_; }
45
45
std::string name_;
46
46
};
47
47
You can’t perform that action at this time.
0 commit comments