summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2015-02-03 21:04:05 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2015-06-13 17:29:50 +0100
commit4411bcd12b7063b554f4594c3b5694906bddc72f (patch)
tree9a7e7a97623bba0982a77839dd9d0e08e348b313
parentRemove debug (diff)
downloadp2pvr-4411bcd12b7063b554f4594c3b5694906bddc72f.tar.bz2
p2pvr-4411bcd12b7063b554f4594c3b5694906bddc72f.tar.xz
p2pvr-4411bcd12b7063b554f4594c3b5694906bddc72f.zip
Don't use the local adapter reference before it's initialized
-rw-r--r--p2pvr/lib/serviceStreamer.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/p2pvr/lib/serviceStreamer.cpp b/p2pvr/lib/serviceStreamer.cpp
index 92bbe5f..c80f942 100644
--- a/p2pvr/lib/serviceStreamer.cpp
+++ b/p2pvr/lib/serviceStreamer.cpp
@@ -2,8 +2,9 @@
#include "serviceStreamer.h"
ServiceStreamer::ServiceStreamer(int sid, P2PVR::RawDataClientPrx t, const Ice::CommunicatorPtr & ic, const Ice::ObjectAdapterPtr & a) :
- ServiceStreamerCore(sid, t, t, t, P2PVR::DevicesPrx::checkedCast(adapter->createProxy(ic->stringToIdentity("GlobalDevices"))), a),
- si(P2PVR::SIPrx::checkedCast(adapter->createProxy(ic->stringToIdentity("SI"))))
+ ServiceStreamerCore(sid, t, t, t,
+ P2PVR::DevicesPrx::checkedCast(a->createProxy(ic->stringToIdentity("GlobalDevices"))), a),
+ si(P2PVR::SIPrx::checkedCast(a->createProxy(ic->stringToIdentity("SI"))))
{
}