From 33dafca31a4283f45a810a7742babcb9d6a7c308 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Tue, 26 Feb 2013 06:33:56 -0800 Subject: [PATCH] Use correct polymorphic downcast. --- src/cpp/ripple/RPCHandler.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cpp/ripple/RPCHandler.cpp b/src/cpp/ripple/RPCHandler.cpp index f9c0902848..3ce0749c44 100644 --- a/src/cpp/ripple/RPCHandler.cpp +++ b/src/cpp/ripple/RPCHandler.cpp @@ -2516,7 +2516,8 @@ Json::Value RPCHandler::doSubscribe(Json::Value jvRequest) { cLog(lsDEBUG) << boost::str(boost::format("doSubscribe: building: %s") % strUrl); - ispSub = mNetOps->addRpcSub(strUrl, boost::make_shared(strUrl, strUsername, strPassword)); + RPCSub::pointer rspSub = boost::make_shared(strUrl, strUsername, strPassword); + ispSub = mNetOps->addRpcSub(strUrl, boost::shared_polymorphic_downcast(rspSub)); } else {