* Radically culled the list of BApplication friends and introduced a
BApplication::Private class for accessing relevant parts. * Pulled the app server connection and IK initialization out of InitData() into a new method _InitGUIContext() and introduced a private constructor that allows to avoid this initialization. This will be used for servers that don't have GUI respectively want to init the app server connection later. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13312 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
#include <Application.h>
|
||||
#include <Locker.h>
|
||||
|
||||
#include <ApplicationPrivate.h>
|
||||
#include <AppServerLink.h>
|
||||
|
||||
|
||||
@@ -33,8 +34,8 @@ AppServerLink::AppServerLink(void)
|
||||
|
||||
// if there is no be_app, we can't do a whole lot, anyway
|
||||
if (be_app) {
|
||||
fReceiver = &be_app->fServerLink->Receiver();
|
||||
fSender = &be_app->fServerLink->Sender();
|
||||
fReceiver = &BApplication::Private::ServerLink()->Receiver();
|
||||
fSender = &BApplication::Private::ServerLink()->Sender();
|
||||
} else {
|
||||
debugger("You need to have a valid app_server connection first!");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user