mirror of
https://github.com/QuasarApp/backward-cpp.git
synced 2025-05-19 04:49:41 +00:00
Add missing ref qualifier
returning a `const T` as opposed to `const T&` serves little purpose and is most likely not what the writer intended. This change was called out by clang-tidy.
This commit is contained in:
parent
98747968ad
commit
fb4a00d1f8
@ -492,7 +492,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
T operator->() { return _val; }
|
T operator->() { return _val; }
|
||||||
const T operator->() const { return _val; }
|
const T& operator->() const { return _val; }
|
||||||
|
|
||||||
typedef typename rm_ptr<T>::type& ref_t;
|
typedef typename rm_ptr<T>::type& ref_t;
|
||||||
typedef const typename rm_ptr<T>::type& const_ref_t;
|
typedef const typename rm_ptr<T>::type& const_ref_t;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user