Skip to content

Commit 2013317

Browse files
#72 Removed unnecessary const qualifier
1 parent 7006f64 commit 2013317

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lwlog/include/details/pattern/sgr_encoder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ namespace lwlog::details
6060
return nullptr;
6161
}
6262

63-
const std::uint8_t sgr_encoder::resolve_color(const sgr_color_spec& spec, bool is_background, bool is_dark)
63+
std::uint8_t sgr_encoder::resolve_color(const sgr_color_spec& spec, bool is_background, bool is_dark)
6464
{
6565
const std::uint8_t channel_offset{ static_cast<std::uint8_t>(is_background ?
6666
color_channel_offset::background : color_channel_offset::foreground) };

lwlog/include/details/pattern/sgr_encoder.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@ namespace lwlog::details
3737

3838
private:
3939
static const sgr_color_spec* find_color_spec(std::string_view color);
40-
static const std::uint8_t resolve_color(const sgr_color_spec&, bool is_background, bool is_dark);
40+
static std::uint8_t resolve_color(const sgr_color_spec&, bool is_background, bool is_dark);
4141
};
4242
}

0 commit comments

Comments
 (0)