Skip to content

Commit e9ddc7c

Browse files
lemireanonrig
authored andcommitted
apvoid copy
1 parent 1ec1065 commit e9ddc7c

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/debug_utils-inl.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ struct ToStringHelper {
5050
template <unsigned BASE_BITS,
5151
typename T,
5252
typename = std::enable_if_t<!std::is_integral_v<T>>>
53-
static std::string BaseConvert(T value) {
53+
static std::string BaseConvert(T& value) { // NOLINT(runtime/references)
5454
return Convert(std::forward<T>(value));
5555
}
5656
};

src/util.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -391,8 +391,7 @@ class MaybeStackBuffer {
391391
// Disallow copy constructor
392392
MaybeStackBuffer(const MaybeStackBuffer&) = delete;
393393
// Disallow copy assignment operator
394-
MaybeStackBuffer&
395-
operator=(const MaybeStackBuffer& other) = delete;
394+
MaybeStackBuffer& operator=(const MaybeStackBuffer& other) = delete;
396395

397396
const T* out() const {
398397
return buf_;

0 commit comments

Comments
 (0)