From 4411bcd12b7063b554f4594c3b5694906bddc72f Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Tue, 3 Feb 2015 21:04:05 +0000 Subject: Don't use the local adapter reference before it's initialized --- p2pvr/lib/serviceStreamer.cpp | 5 +++-- 1 file 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")))) { } -- cgit v1.2.3