mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:17:36 +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,10 +1,12 @@
|
|||
#include <AK/ByteBuffer.h>
|
||||
#include <AK/String.h>
|
||||
#include <AK/StringBuilder.h>
|
||||
#include <LibCore/CEventLoop.h>
|
||||
#include <LibCore/CFile.h>
|
||||
#include <LibGUI/GClipboard.h>
|
||||
#include <LibGUI/GEventLoop.h>
|
||||
#include <getopt.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
struct Options {
|
||||
String data;
|
||||
|
@ -86,7 +88,7 @@ int main(int argc, char* argv[])
|
|||
{
|
||||
Options options = parse_options(argc, argv);
|
||||
|
||||
new GEventLoop;
|
||||
CEventLoop loop;
|
||||
|
||||
GClipboard& clipboard = GClipboard::the();
|
||||
clipboard.set_data(options.data, options.type);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue