Skip to content

Commit

Permalink
libcore: Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Sep 1, 2019
1 parent 8ec7629 commit ed1d044
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions doomsday/libs/core/include/de/core/textapp.h
Expand Up @@ -45,9 +45,9 @@ class DE_PUBLIC TextApp : public App
/**
* Start the application event loop.
*
* @param postExec Function to call immediately after starting the event loop.
* @param startup Function to call immediately after starting the event loop.
*/
int exec(const std::function<void()> &postExec = {});
int exec(const std::function<void()> &startup = {});

void quit(int code);

Expand Down
6 changes: 3 additions & 3 deletions doomsday/libs/core/src/core/textapp.cpp
Expand Up @@ -87,13 +87,13 @@ bool TextApp::notify(QObject *receiver, QEvent *event)
}
*/

int TextApp::exec(const std::function<void()> &postExec)
int TextApp::exec(const std::function<void()> &startup)
{
LOGDEV_NOTE("Starting TextApp event loop...");

int code = d->eventLoop.exec([this, postExec]() {
int code = d->eventLoop.exec([this, startup]() {
d->loop.start();
postExec();
startup();
});

LOGDEV_NOTE("TextApp event loop exited with code %i") << code;
Expand Down

0 comments on commit ed1d044

Please sign in to comment.