mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:48:11 +00:00
LibCore+LibGUI: Remove GEventLoop and use CEventLoop everywhere
GEventLoop was just a dummy subclass of CEventLoop anyway. The only thing it actually did was make sure a GWindowServerConnectionw was instantiated. We now take care of that in GApplication instead. CEventLoop is now non-virtual and a little less confusing. :^)
This commit is contained in:
parent
edac8704de
commit
34d0e96aec
12 changed files with 23 additions and 42 deletions
|
@ -1,7 +1,9 @@
|
|||
#include <AK/String.h>
|
||||
#include <LibCore/CEventLoop.h>
|
||||
#include <LibGUI/GClipboard.h>
|
||||
#include <LibGUI/GEventLoop.h>
|
||||
#include <getopt.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
struct Options {
|
||||
bool print_type { false };
|
||||
|
@ -62,7 +64,7 @@ int main(int argc, char* argv[])
|
|||
{
|
||||
Options options = parse_options(argc, argv);
|
||||
|
||||
new GEventLoop;
|
||||
CEventLoop loop;
|
||||
|
||||
GClipboard& clipboard = GClipboard::the();
|
||||
auto data_and_type = clipboard.data_and_type();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue