summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/jabber/jingle/libjingle/talk/session/phone/call.cc
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/protocols/jabber/jingle/libjingle/talk/session/phone/call.cc')
-rw-r--r--kopete/protocols/jabber/jingle/libjingle/talk/session/phone/call.cc26
1 files changed, 13 insertions, 13 deletions
diff --git a/kopete/protocols/jabber/jingle/libjingle/talk/session/phone/call.cc b/kopete/protocols/jabber/jingle/libjingle/talk/session/phone/call.cc
index 7a79d044..31b12e92 100644
--- a/kopete/protocols/jabber/jingle/libjingle/talk/session/phone/call.cc
+++ b/kopete/protocols/jabber/jingle/libjingle/talk/session/phone/call.cc
@@ -56,7 +56,7 @@ Session *Call::InitiateSession(const buzz::Jid &jid) {
void Call::AcceptSession(Session *session) {
std::vector<Session *>::iterator it;
- it = std::tqfind(sessions_.begin(), sessions_.end(), session);
+ it = std::find(sessions_.begin(), sessions_.end(), session);
assert(it != sessions_.end());
if (it != sessions_.end())
session->Accept(session_client_->CreateAcceptSessionDescription(session->remote_description()));
@@ -64,7 +64,7 @@ void Call::AcceptSession(Session *session) {
void Call::RedirectSession(Session *session, const buzz::Jid &to) {
std::vector<Session *>::iterator it;
- it = std::tqfind(sessions_.begin(), sessions_.end(), session);
+ it = std::find(sessions_.begin(), sessions_.end(), session);
assert(it != sessions_.end());
if (it != sessions_.end())
session->Redirect(to.Str());
@@ -72,16 +72,16 @@ void Call::RedirectSession(Session *session, const buzz::Jid &to) {
void Call::RejectSession(Session *session) {
std::vector<Session *>::iterator it;
- it = std::tqfind(sessions_.begin(), sessions_.end(), session);
+ it = std::find(sessions_.begin(), sessions_.end(), session);
assert(it != sessions_.end());
if (it != sessions_.end())
session->Reject();
}
void Call::TerminateSession(Session *session) {
- assert(std::tqfind(sessions_.begin(), sessions_.end(), session) != sessions_.end());
+ assert(std::find(sessions_.begin(), sessions_.end(), session) != sessions_.end());
std::vector<Session *>::iterator it;
- it = std::tqfind(sessions_.begin(), sessions_.end(), session);
+ it = std::find(sessions_.begin(), sessions_.end(), session);
if (it != sessions_.end())
(*it)->Terminate();
}
@@ -127,14 +127,14 @@ void Call::AddSession(Session *session) {
void Call::RemoveSession(Session *session) {
// Remove session from list
std::vector<Session *>::iterator it_session;
- it_session = std::tqfind(sessions_.begin(), sessions_.end(), session);
+ it_session = std::find(sessions_.begin(), sessions_.end(), session);
if (it_session == sessions_.end())
return;
sessions_.erase(it_session);
// Destroy session channel
std::map<SessionID, VoiceChannel *>::iterator it_channel;
- it_channel = channel_map_.tqfind(session->id());
+ it_channel = channel_map_.find(session->id());
if (it_channel != channel_map_.end()) {
VoiceChannel *channel = it_channel->second;
channel_map_.erase(it_channel);
@@ -149,7 +149,7 @@ void Call::RemoveSession(Session *session) {
}
VoiceChannel* Call::GetChannel(Session* session) {
- std::map<SessionID, VoiceChannel *>::iterator it = channel_map_.tqfind(session->id());
+ std::map<SessionID, VoiceChannel *>::iterator it = channel_map_.find(session->id());
assert(it != channel_map_.end());
return it->second;
}
@@ -184,7 +184,7 @@ void Call::Join(Call *call, bool enable) {
// Move channel
std::map<SessionID, VoiceChannel *>::iterator it_channel;
- it_channel = call->channel_map_.tqfind(session->id());
+ it_channel = call->channel_map_.find(session->id());
if (it_channel != call->channel_map_.end()) {
VoiceChannel *channel = (*it_channel).second;
call->channel_map_.erase(it_channel);
@@ -196,7 +196,7 @@ void Call::Join(Call *call, bool enable) {
void Call::StartConnectionMonitor(Session *session, int cms) {
std::map<SessionID, VoiceChannel *>::iterator it_channel;
- it_channel = channel_map_.tqfind(session->id());
+ it_channel = channel_map_.find(session->id());
if (it_channel != channel_map_.end()) {
VoiceChannel *channel = (*it_channel).second;
channel->SignalConnectionMonitor.connect(this, &Call::OnConnectionMonitor);
@@ -206,7 +206,7 @@ void Call::StartConnectionMonitor(Session *session, int cms) {
void Call::StopConnectionMonitor(Session *session) {
std::map<SessionID, VoiceChannel *>::iterator it_channel;
- it_channel = channel_map_.tqfind(session->id());
+ it_channel = channel_map_.find(session->id());
if (it_channel != channel_map_.end()) {
VoiceChannel *channel = (*it_channel).second;
channel->StopConnectionMonitor();
@@ -216,7 +216,7 @@ void Call::StopConnectionMonitor(Session *session) {
void Call::StartAudioMonitor(Session *session, int cms) {
std::map<SessionID, VoiceChannel *>::iterator it_channel;
- it_channel = channel_map_.tqfind(session->id());
+ it_channel = channel_map_.find(session->id());
if (it_channel != channel_map_.end()) {
VoiceChannel *channel = (*it_channel).second;
channel->SignalAudioMonitor.connect(this, &Call::OnAudioMonitor);
@@ -226,7 +226,7 @@ void Call::StartAudioMonitor(Session *session, int cms) {
void Call::StopAudioMonitor(Session *session) {
std::map<SessionID, VoiceChannel *>::iterator it_channel;
- it_channel = channel_map_.tqfind(session->id());
+ it_channel = channel_map_.find(session->id());
if (it_channel != channel_map_.end()) {
VoiceChannel *channel = (*it_channel).second;
channel->StopAudioMonitor();