launchpad: fix build errors with -std=gnu++20

Fixes #4884
This commit is contained in:
Christian Prochaska 2023-05-16 08:09:56 +02:00 committed by Christian Helmuth
parent b696439a67
commit c4b8fae563
4 changed files with 13 additions and 13 deletions

View File

@ -67,11 +67,11 @@ class Child_entry : public Scout::Parent_element,
friend class Genode::List<Child_entry<PT> >;
enum { _IW = 16 }; /* icon width */
enum { _IH = 16 }; /* icon height */
enum { _PTW = 100 }; /* program text width */
enum { _PADX = 10 }; /* horizontal padding */
enum { _NAME_LEN = 64 }; /* max length of child name */
static constexpr int _IW = 16; /* icon width */
static constexpr int _IH = 16; /* icon height */
static constexpr int _PTW = 100; /* program text width */
static constexpr int _PADX = 10; /* horizontal padding */
static constexpr int _NAME_LEN = 64; /* max length of child name */
Scout::Block _block;
Kbyte_loadbar<PT> _loadbar;

View File

@ -29,9 +29,9 @@ class Launch_entry : public Scout::Parent_element, public Loadbar_listener
Scout::Launcher _launcher;
int _lh = 0; /* launch entry height */
enum { _PTW = 100 }; /* program text width */
enum { _PADX = 10 }; /* program text width */
enum { _PADR = 16 }; /* right padding */
static constexpr int _PTW = 100; /* program text width */
static constexpr int _PADX = 10; /* program text width */
static constexpr int _PADR = 16; /* right padding */
public:

View File

@ -30,8 +30,8 @@ class Section : public Scout::Parent_element
Section(Section const &);
Section &operator = (Section const &);
enum { _SH = 8 }; /* shadow height */
enum { _STH = 20 }; /* shadow height */
static constexpr int _SH = 8; /* shadow height */
static constexpr int _STH = 20; /* shadow height */
Scout::Horizontal_shadow<PT, 40> _bg;
Scout::Horizontal_shadow<PT, 160> _shadow;

View File

@ -25,9 +25,9 @@ class Status_entry : public Scout::Parent_element
Kbyte_loadbar<PT> _loadbar;
int _lh = 0; /* launch entry height */
enum { _PTW = 100 }; /* program text width */
enum { _PADX = 10 }; /* horizontal padding */
enum { _PADR = 16 }; /* right padding */
static constexpr int _PTW = 100; /* program text width */
static constexpr int _PADX = 10; /* horizontal padding */
static constexpr int _PADR = 16; /* right padding */
public: