base: extend constness of Genode::Token

Fixes #5039
This commit is contained in:
Roman Iten 2023-10-24 08:23:28 +02:00 committed by Christian Helmuth
parent b53a630592
commit 0d344de496

View File

@ -123,7 +123,7 @@ class Genode::Token
/**
* Return next token after delimiter
*/
Token next_after(char const *delim)
Token next_after(char const *delim) const
{
size_t const len = strlen(delim);
@ -141,7 +141,7 @@ class Genode::Token
/**
* Return true if token starts with pattern
*/
bool matches(char const *pattern)
bool matches(char const *pattern) const
{
size_t const len = strlen(pattern);