- switch to unique_ptr
- add initial CI
This commit is contained in:
@@ -416,7 +416,7 @@ int Account::sendMsg(const std::string& peer, const void* ptr, unsigned length,
|
||||
resip::ClientPagerMessageHandle msgHandle = mAgent.mDum->makePagerMessage(resip::NameAddr(resip::Data(peer)), mProfile, s);
|
||||
unique_ptr<resip::Contents> contentPtr(new resip::PlainContents(resip::Data(std::string((const char*)ptr, length)),type));
|
||||
int result = s->sessionId();
|
||||
msgHandle->page(contentPtr);
|
||||
msgHandle->page(std::move(contentPtr));
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -245,7 +245,7 @@ void UserAgent::start()
|
||||
mDum->setServerPagerMessageHandler(this);
|
||||
|
||||
unique_ptr<resip::AppDialogSetFactory> uac_dsf(new ResipSessionFactory(this));
|
||||
mDum->setAppDialogSetFactory(uac_dsf);
|
||||
mDum->setAppDialogSetFactory(std::move(uac_dsf));
|
||||
|
||||
// Fire onStart event if stun is not used or stun server ip is known
|
||||
if (mConfig[CONFIG_STUNSERVER_NAME].asStdString().empty() || !mConfig[CONFIG_STUNSERVER_IP].asStdString().empty())
|
||||
|
||||
@@ -429,7 +429,7 @@ public:
|
||||
|
||||
#pragma region PagerHandler
|
||||
void onSuccess(resip::ClientPagerMessageHandle, const resip::SipMessage& status) override;
|
||||
void onFailure(resip::ClientPagerMessageHandle, const resip::SipMessage& status, std::auto_ptr<resip::Contents> contents) override;
|
||||
void onFailure(resip::ClientPagerMessageHandle, const resip::SipMessage& status, std::unique_ptr<resip::Contents> contents) override;
|
||||
void onMessageArrived(resip::ServerPagerMessageHandle, const resip::SipMessage& message) override;
|
||||
#pragma endregion
|
||||
|
||||
|
||||
Reference in New Issue
Block a user