Skip to content

Commit

Permalink
Clang format.
Browse files Browse the repository at this point in the history
  • Loading branch information
SolidWallOfCode committed Nov 15, 2023
1 parent 9416362 commit 0969972
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
7 changes: 4 additions & 3 deletions code/include/swoc/IPRange.h
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ class IPRangeView {
storage_type() = default;
storage_type(std::monostate) {}
storage_type(storage_type const &that);
storage_type & operator = (storage_type const& rhs);
storage_type &operator=(storage_type const &rhs);
};

public:
Expand Down Expand Up @@ -1824,9 +1824,10 @@ IPSpace<PAYLOAD>::iterator::operator--(int) -> self_type {

// +++ IPRange +++

inline IPRangeView::storage_type::storage_type(IPRangeView::storage_type const & that) : _void(that._void) {}
inline IPRangeView::storage_type::storage_type(IPRangeView::storage_type const &that) : _void(that._void) {}

inline IPRangeView::storage_type & IPRangeView::storage_type::operator=(IPRangeView::storage_type const & rhs) {
inline IPRangeView::storage_type &
IPRangeView::storage_type::operator=(IPRangeView::storage_type const &rhs) {
_void = rhs._void;
return *this;
}
Expand Down
12 changes: 6 additions & 6 deletions code/include/swoc/swoc_file.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,13 @@ class path {
self_type &operator=(std::string_view p);

/// Assign @a s as the path.
self_type &operator=(std::string const& s);
self_type &operator=(std::string const &s);

/// Move @a s to be the path.
self_type &operator=(std::string && s);
self_type &operator=(std::string &&s);

/// Copy @a s as the path.
self_type &operator=(char const * s);
self_type &operator=(char const *s);

/** Append or replace path with @a that.
*
Expand Down Expand Up @@ -378,19 +378,19 @@ path::operator=(std::string_view p) {
}

inline path &
path::operator=(std::string const& s) {
path::operator=(std::string const &s) {
_path.assign(s);
return *this;
}

inline path &
path::operator=(std::string && s) {
path::operator=(std::string &&s) {
_path.assign(std::move(s));
return *this;
}

inline path &
path::operator=(char const * s) {
path::operator=(char const *s) {
_path.assign(s);
return *this;
}
Expand Down

0 comments on commit 0969972

Please sign in to comment.