Skip to content

Commit af0e32b

Browse files
pass spans by value
1 parent 9ba8c5e commit af0e32b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

platform/include/platform/CircularBuffer.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ class CircularBuffer {
162162
*
163163
* @param src Data to be pushed to the buffer.
164164
*/
165-
void push(const mbed::Span<const T>& src)
165+
void push(mbed::Span<const T> src)
166166
{
167167
push(src.data(), src.size());
168168
}
@@ -245,7 +245,7 @@ class CircularBuffer {
245245
*
246246
* @return The span with the size set to number of elements popped using the buffer passed in as the parameter.
247247
*/
248-
mbed::Span<T> pop(const mbed::Span<T>& dest)
248+
mbed::Span<T> pop(mbed::Span<T> dest)
249249
{
250250
CounterType popped = pop(dest.data(), dest.size());
251251
return mbed::make_Span(dest.data(), popped);

0 commit comments

Comments
 (0)