Replace use of 'typedef' by 'using'

Issue #5227
This commit is contained in:
Norman Feske
2024-06-28 17:20:59 +02:00
parent 361557e1f0
commit 19c13877ca
442 changed files with 1306 additions and 1349 deletions

View File

@ -21,7 +21,7 @@
namespace Input {
typedef Genode::Codepoint Codepoint;
using Codepoint = Genode::Codepoint;
struct Touch_id { unsigned value; };

View File

@ -35,7 +35,7 @@ class Input::Event_queue
*/
enum { QUEUE_SIZE = 512U };
typedef Genode::Ring_buffer<Input::Event, QUEUE_SIZE> Ring_buffer;
using Ring_buffer = Genode::Ring_buffer<Input::Event, QUEUE_SIZE>;
private:
@ -47,7 +47,7 @@ class Input::Event_queue
public:
typedef Ring_buffer::Overflow Overflow;
using Overflow = Ring_buffer::Overflow;
void enabled(bool enabled) { _enabled = enabled; }

View File

@ -484,7 +484,7 @@ namespace Input {
return "KEY_UNKNOWN";
}
typedef Genode::String<22> Key_name;
using Key_name = Genode::String<22>;
/**
* Return key code for name (linear search)