1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Modal component fix. Minor tweaks.

This commit is contained in:
jules 2012-11-19 23:29:39 +00:00
parent 880fa4d673
commit f24f7b638c
5 changed files with 29 additions and 34 deletions

View file

@ -129,10 +129,9 @@ bool InterprocessConnection::isConnected() const
String InterprocessConnection::getConnectedHostName() const
{
if (pipe != nullptr)
{
return "localhost";
}
else if (socket != nullptr)
if (socket != nullptr)
{
if (! socket->isLocal())
return socket->getHostName();
@ -236,14 +235,13 @@ void InterprocessConnection::connectionLostInt()
struct DataDeliveryMessage : public Message
{
DataDeliveryMessage (InterprocessConnection* owner_, const MemoryBlock& data_)
: owner (owner_), data (data_)
DataDeliveryMessage (InterprocessConnection* ipc, const MemoryBlock& d)
: owner (ipc), data (d)
{}
void messageCallback()
{
InterprocessConnection* const ipc = owner;
if (ipc != nullptr)
if (InterprocessConnection* const ipc = owner)
ipc->messageReceived (data);
}