Project

General

Profile

Bug #608 » leechcraft-for-gcc-4.7.0.patch

Anonymous, 03/18/2012 11:03 AM

View differences:

./src/plugins/azoth/plugins/astrality/protowrapper.cpp 2012-03-18 01:34:32.377695230 +0200
{
QVariantMap params;
auto fpg = qobject_cast<AccountRegFirstPage*> (widgets.value (0));
auto chSet = [&params, &ProtoInfo_] (QString param, QVariant value)
auto chSet = [&params, this] (QString param, QVariant value)
{
if (ProtoInfo_.hasParameter (param))
params [param] = value;
./src/plugins/aggregator/core.cpp 2012-03-17 18:03:16.728925270 +0200
channels_shorts_t channels;
StorageBackend_->GetChannels (channels, feedId);
std::for_each (channels.begin (), channels.end (),
[ChannelsModel_] (ChannelShort chan)
[this] (ChannelShort chan)
{ ChannelsModel_->AddChannel (chan); });
}
./src/plugins/azoth/core.cpp 2012-03-17 18:15:55.419206463 +0200
Util::NotificationActionHandler *nh =
new Util::NotificationActionHandler (e, this);
nh->AddFunction (tr ("Open chat"),
[parentCL, ChatTabsManager_] () { ChatTabsManager_->OpenChat (parentCL); });
[parentCL, this] () { ChatTabsManager_->OpenChat (parentCL); });
nh->AddDependentObject (parentCL->GetObject ());
emit gotEntity (e);
......
Util::NotificationActionHandler *nh =
new Util::NotificationActionHandler (e, this);
nh->AddFunction (tr ("Open chat"),
[entry, ChatTabsManager_] () { ChatTabsManager_->OpenChat (entry); });
[entry, this] () { ChatTabsManager_->OpenChat (entry); });
nh->AddDependentObject (entry->GetObject ());
emit gotEntity (e);
./src/plugins/azoth/msgformatterwidget.cpp 2012-03-17 18:26:54.147910604 +0200
void MsgFormatterWidget::handleBold ()
{
CharFormatActor ([FormatBold_] (QTextCharFormat *fmt)
CharFormatActor ([this] (QTextCharFormat *fmt)
{ fmt->setFontWeight (FormatBold_->isChecked () ? QFont::Bold : QFont::Normal); });
}
void MsgFormatterWidget::handleItalic ()
{
CharFormatActor ([FormatItalic_] (QTextCharFormat *fmt)
CharFormatActor ([this] (QTextCharFormat *fmt)
{ fmt->setFontItalic (FormatItalic_->isChecked ()); });
}
void MsgFormatterWidget::handleUnderline ()
{
CharFormatActor ([FormatUnderline_] (QTextCharFormat *fmt)
CharFormatActor ([this] (QTextCharFormat *fmt)
{ fmt->setFontUnderline (FormatUnderline_->isChecked ()); });
}
void MsgFormatterWidget::handleStrikeThrough ()
{
CharFormatActor ([FormatStrikeThrough_] (QTextCharFormat *fmt)
CharFormatActor ([this] (QTextCharFormat *fmt)
{ fmt->setFontStrikeOut (FormatStrikeThrough_->isChecked ()); });
}
./src/plugins/azoth/plugins/vader/mrimbuddy.cpp 2012-03-17 18:32:33.892514368 +0200
void MRIMBuddy::UpdateClientVersion ()
{
auto defClient = [&ClientInfo_, this] ()
auto defClient = [this] ()
{
ClientInfo_ ["client_type"] = "mailruagent";
ClientInfo_ ["client_name"] = tr ("Mail.Ru Agent");
./src/plugins/azoth/plugins/xoox/msgarchivingmanager.cpp 2012-03-17 19:30:33.102464125 +0200
Prefs_.AutoSave_ = autoSave.attribute ("save") == "true";
auto handleMeth = [&Prefs_] (const QDomElement& meth)
auto handleMeth = [this] (const QDomElement& meth)
{
Prefs_.MethodPolicies_ [MethodConverter (meth.attribute ("type"))] =
MethodPolicyConverter (meth.attribute ("use"));
./src/plugins/azoth/plugins/xoox/roomhandler.cpp 2012-03-17 19:22:16.888949769 +0200
{
const QString& server = jid.split ('@', QString::SkipEmptyParts).value (1);
auto sdManager = Account_->GetClientConnection ()->GetSDManager ();
sdManager->RequestInfo ([&ServerDisco_] (const QXmppDiscoveryIq& iq)
sdManager->RequestInfo ([this] (const QXmppDiscoveryIq& iq)
{ ServerDisco_ = iq; },
server);
./src/plugins/azoth/plugins/xoox/sdmanager.cpp 2012-03-17 19:25:31.005492464 +0200
void SDManager::RequestInfo (ClientConnection::DiscoCallback_t callback,
const QString& jid, const QString& node)
{
auto f = [Conn_] (const QString& jid, ClientConnection::DiscoCallback_t cb, const QString& node)
auto f = [this] (const QString& jid, ClientConnection::DiscoCallback_t cb, const QString& node)
{ Conn_->RequestInfo (jid, cb, node); };
CommonDo (Infos_, f, callback, jid, node);
}
......
void SDManager::RequestItems (ClientConnection::DiscoCallback_t callback,
const QString& jid, const QString& node)
{
auto f = [Conn_] (const QString& jid, ClientConnection::DiscoCallback_t cb, const QString& node)
auto f = [this] (const QString& jid, ClientConnection::DiscoCallback_t cb, const QString& node)
{ Conn_->RequestItems (jid, cb, node); };
CommonDo (Items_, f, callback, jid, node);
}
./src/plugins/newlife/importers/psiplus/psiplusimportpage.cpp 2012-03-17 19:54:32.184623933 +0200
{
namespace Importers
{
namespace
{
QString tfd (const QDomElement& account, const QString& field)
{
return account.firstChildElement (field).text ();
}
}
PsiPlusImportPage::PsiPlusImportPage (QWidget *parent)
: Common::IMImportPage (parent)
{
auto tfd = [] (const QDomElement& account, const QString& field)
{ return account.firstChildElement (field).text (); };
auto adapter = Common::XMLIMAccount::ConfigAdapter
{
AccountsModel_,
QStringList (".config") << "Psi+" << "profiles",
"accounts.xml",
[] (const QDomElement&) { return "xmpp"; },
[tfd] (const QDomElement& acc) { return tfd (acc, "name"); },
[tfd] (const QDomElement& acc) { return tfd (acc, "enabled") == "true"; },
[tfd] (const QDomElement& acc) { return tfd (acc, "jid"); },
[tfd] (const QDomElement& acc, QVariantMap& accountData)
[] (const QDomElement& acc) { return tfd (acc, "name"); },
[] (const QDomElement& acc) { return tfd (acc, "enabled") == "true"; },
[] (const QDomElement& acc) { return tfd (acc, "jid"); },
[] (const QDomElement& acc, QVariantMap& accountData)
{
accountData ["Port"] = tfd (acc, "port").toInt ();
accountData ["Host"] = tfd (acc, "use-host") == "true" ?
./src/plugins/newlife/importers/vacuum/vacuumimportpage.cpp 2012-03-17 19:55:40.825213517 +0200
{
namespace Importers
{
namespace
{
QString tfd (const QDomElement& account, const QString& field)
{
return account.firstChildElement (field).text ();
}
}
VacuumImportPage::VacuumImportPage (QWidget *parent)
: Common::IMImportPage (parent)
{
auto tfd = [] (const QDomElement& account, const QString& field)
{ return account.firstChildElement (field).text (); };
auto adapter = Common::XMLIMAccount::ConfigAdapter
{
AccountsModel_,
QStringList (".vacuum") << "profiles",
"options.xml",
[] (const QDomElement&) { return "xmpp"; },
[tfd] (const QDomElement& acc) { return tfd (acc, "name"); },
[tfd] (const QDomElement& acc) { return tfd (acc, "active") == "true"; },
[tfd] (const QDomElement& acc)
[] (const QDomElement& acc) { return tfd (acc, "name"); },
[] (const QDomElement& acc) { return tfd (acc, "active") == "true"; },
[] (const QDomElement& acc)
{
const auto& sjid = tfd (acc, "streamJid");
const int pos = sjid.indexOf ('/');
return pos < 0 ? sjid : sjid.left (pos);
},
[tfd] (const QDomElement& acc, QVariantMap& accountData)
[] (const QDomElement& acc, QVariantMap& accountData)
{
const QDomElement& conn = acc.firstChildElement ("connection");
(3-3/3)