client auth: Switch from CSmartPtr to std::shared_ptr

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter
2014-09-12 15:12:46 +02:00
parent 3953185b04
commit 7704bc49d7
13 changed files with 22 additions and 23 deletions

View File

@@ -870,7 +870,7 @@ CString CWebSock::GetCSRFCheck() {
bool CWebSock::OnLogin(const CString& sUser, const CString& sPass) {
DEBUG("=================== CWebSock::OnLogin()");
m_spAuth = new CWebAuth(this, sUser, sPass);
m_spAuth = std::make_shared<CWebAuth>(this, sUser, sPass);
// Some authentication module could need some time, block this socket
// until then. CWebAuth will UnPauseRead().