mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-01 20:00:13 +02:00
No need for std::bind here
This commit is contained in:
@@ -38,24 +38,9 @@ QMap< QString, UrlTranslatorFunc > urltranslators;
|
|||||||
void
|
void
|
||||||
initialiseDefaultIOFactories()
|
initialiseDefaultIOFactories()
|
||||||
{
|
{
|
||||||
{
|
iofactories.insert( "file", localFileIODeviceFactory );
|
||||||
// _1 = result, _2 = callback function for IODevice
|
iofactories.insert( "http", httpIODeviceFactory );
|
||||||
IODeviceFactoryFunc fac = std::bind( localFileIODeviceFactory,
|
iofactories.insert( "https", httpIODeviceFactory );
|
||||||
std::placeholders::_1,
|
|
||||||
std::placeholders::_2,
|
|
||||||
std::placeholders::_3 );
|
|
||||||
iofactories.insert( "file", fac );
|
|
||||||
}
|
|
||||||
|
|
||||||
{
|
|
||||||
IODeviceFactoryFunc fac = std::bind( httpIODeviceFactory,
|
|
||||||
std::placeholders::_1,
|
|
||||||
std::placeholders::_2,
|
|
||||||
std::placeholders::_3 );
|
|
||||||
iofactories.insert( "http", fac );
|
|
||||||
iofactories.insert( "https", fac );
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Reference in New Issue
Block a user