mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-13 13:42:30 +00:00
convert color_vars to std::array
Fixes: warning: ‘display::color_vars’ defined but not used Could also add const to it. Do the same with color_names. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
committed by
Jari Sundell
parent
897a6face2
commit
a4ab0112dc
@@ -106,7 +106,7 @@ Canvas::build_colors() {
|
||||
return;
|
||||
|
||||
// basic color names, index maps to ncurses COLOR_*
|
||||
static const char* color_names[] = {
|
||||
static constexpr std::array color_names{
|
||||
"black", "red", "green", "yellow", "blue", "magenta", "cyan", "white"};
|
||||
|
||||
// Those hold the background colors of "odd" and "even"
|
||||
|
||||
Reference in New Issue
Block a user