Skip to content

Commit afa9ff9

Browse files
committed
run make format (with clang-format-10), to format the code
1 parent 319fe90 commit afa9ff9

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

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)