Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor cleanup #1039

Merged
merged 1 commit into from
Mar 1, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions include/etl/bit_stream.h
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,8 @@ namespace etl
while (nbits != 0)
{
unsigned char mask_width = static_cast<unsigned char>(etl::min(nbits, bits_available_in_char));
typedef typename etl::make_unsigned<T>::type chunk_t;

typedef typename etl::make_unsigned<T>::type chunk_t;
chunk_t chunk = get_chunk(mask_width);

nbits -= mask_width;
Expand Down Expand Up @@ -529,7 +529,7 @@ namespace etl

typedef char value_type;
typedef value_type* iterator;
typedef const value_type* const_iterator;
typedef const value_type* const_iterator;
typedef etl::span<value_type> callback_parameter_type;
typedef etl::delegate<void(callback_parameter_type)> callback_type;

Expand Down
6 changes: 1 addition & 5 deletions include/etl/intrusive_forward_list.h
Original file line number Diff line number Diff line change
Expand Up @@ -351,11 +351,7 @@ namespace etl
}

p_previous = p_link;

if (p_link != ETL_NULLPTR)
{
p_link = p_link->link_type::etl_next;
}
p_link = p_link->link_type::etl_next;
}

return ETL_NULLPTR;
Expand Down
10 changes: 5 additions & 5 deletions include/etl/private/delegate_cpp03.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ namespace etl
//***********************************
template <typename TDelegate, typename TReturn, typename TParam>
struct call_if_impl
{
{
etl::optional<TReturn> call_if(TParam param)
{
TDelegate& d = static_cast<TDelegate&>(*this);
TDelegate& d = static_cast<TDelegate&>(*this);

etl::optional<TReturn> result;

if (d.is_valid())
Expand All @@ -88,8 +88,8 @@ namespace etl
{
bool call_if()
{
TDelegate& d = static_cast<TDelegate&>(*this);
TDelegate& d = static_cast<TDelegate&>(*this);

if (d.is_valid())
{
d();
Expand Down
1 change: 0 additions & 1 deletion include/etl/vector.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ SOFTWARE.
#include "functional.h"
#include "static_assert.h"
#include "placement_new.h"
#include "algorithm.h"
#include "initializer_list.h"

#include <stddef.h>
Expand Down
Loading