Skip to content

Commit 8aea937

Browse files
committed
run make format (with clang-format-10), to format the code
1 parent f836f73 commit 8aea937

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

sigc++/sigc++.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@
3636
* See also the
3737
* <a href="https://developer.gnome.org/libsigc++-tutorial/stable/">libsigc++ tutorial</a>,
3838
* 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>.
4041
*
4142
* @section features Features
4243
*

tests/test_bind.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ struct book : public sigc::trackable
7070
book& operator=(book&&) = delete;
7171

7272
std::string& get_name() { return name_; }
73-
operator std::string&() { return get_name(); }
73+
operator std::string &() { return get_name(); }
7474

7575
private:
7676
std::string name_;

tests/test_bind_refptr.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,8 @@ class RefPtr
197197
// If it would come after them it wouldn't be inlined.
198198

199199
template<typename T_CppObject>
200-
inline T_CppObject* RefPtr<T_CppObject>::operator->() const
200+
inline T_CppObject*
201+
RefPtr<T_CppObject>::operator->() const
201202
{
202203
return pCppObject_;
203204
}

tests/test_cpp11_lambda.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ egon(std::string& str)
8888
struct book : public sigc::trackable
8989
{
9090
explicit book(const std::string& name) : name_(name) {}
91-
operator std::string&() { return name_; }
91+
operator std::string &() { return name_; }
9292
std::string name_;
9393
};
9494

tests/test_track_obj.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ std::ostringstream result_stream;
4040
struct book : public sigc::trackable
4141
{
4242
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_; }
4545
std::string name_;
4646
};
4747

0 commit comments

Comments
 (0)