summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2013-01-23 23:29:50 -0500
committerLioncash <mathew1800@gmail.com>2013-01-23 23:29:50 -0500
commitb7d32b0a3d810736b2e1151d6d8b9da85ebfbcf3 (patch)
tree6d0f6d17c394467b821d890eb279d143a23d84ec /Source/Core
parentcff8fe8f77cda18cda80b95364d59dc45a9c6830 (diff)
mem_fun -> mem_fn.
mem_fun is deprecated in C++11. Also it does everything mem_fun can do, but more conveniently.
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/AudioCommon/Src/AOSoundStream.cpp2
-rw-r--r--Source/Core/AudioCommon/Src/DSoundStream.cpp2
-rw-r--r--Source/Core/AudioCommon/Src/OpenALStream.cpp6
-rw-r--r--Source/Core/Core/Src/HW/EXI_DeviceGecko.cpp2
-rw-r--r--Source/Core/Core/Src/HW/WiimoteReal/IOWin.cpp2
-rw-r--r--Source/Core/Core/Src/NetPlayClient.cpp2
-rw-r--r--Source/Core/Core/Src/NetPlayServer.cpp2
-rw-r--r--Source/Core/InputCommon/Src/UDPWiimote.cpp2
8 files changed, 11 insertions, 9 deletions
diff --git a/Source/Core/AudioCommon/Src/AOSoundStream.cpp b/Source/Core/AudioCommon/Src/AOSoundStream.cpp
index 99ae2e661c..276938c3e2 100644
--- a/Source/Core/AudioCommon/Src/AOSoundStream.cpp
+++ b/Source/Core/AudioCommon/Src/AOSoundStream.cpp
@@ -63,7 +63,7 @@ bool AOSound::Start()
{
memset(realtimeBuffer, 0, sizeof(realtimeBuffer));
- thread = std::thread(std::mem_fun(&AOSound::SoundLoop), this);
+ thread = std::thread(std::mem_fn(&AOSound::SoundLoop), this);
return true;
}
diff --git a/Source/Core/AudioCommon/Src/DSoundStream.cpp b/Source/Core/AudioCommon/Src/DSoundStream.cpp
index b252dc90c5..c0c54e00f5 100644
--- a/Source/Core/AudioCommon/Src/DSoundStream.cpp
+++ b/Source/Core/AudioCommon/Src/DSoundStream.cpp
@@ -135,7 +135,7 @@ bool DSound::Start()
dsBuffer->Lock(0, bufferSize, (void* *)&p1, &num1, 0, 0, DSBLOCK_ENTIREBUFFER);
memset(p1, 0, num1);
dsBuffer->Unlock(p1, num1, 0, 0);
- thread = std::thread(std::mem_fun(&DSound::SoundLoop), this);
+ thread = std::thread(std::mem_fn(&DSound::SoundLoop), this);
return true;
}
diff --git a/Source/Core/AudioCommon/Src/OpenALStream.cpp b/Source/Core/AudioCommon/Src/OpenALStream.cpp
index cfe6a40630..814f720e6e 100644
--- a/Source/Core/AudioCommon/Src/OpenALStream.cpp
+++ b/Source/Core/AudioCommon/Src/OpenALStream.cpp
@@ -15,6 +15,8 @@
// Official SVN repository and contact information can be found at
// http://code.google.com/p/dolphin-emu/
+#include <functional>
+
#include "aldlist.h"
#include "OpenALStream.h"
#include "DPL2Decoder.h"
@@ -52,7 +54,7 @@ bool OpenALStream::Start()
//period_size_in_millisec = 1000 / refresh;
alcMakeContextCurrent(pContext);
- thread = std::thread(std::mem_fun(&OpenALStream::SoundLoop), this);
+ thread = std::thread(std::mem_fn(&OpenALStream::SoundLoop), this);
bReturn = true;
}
else
@@ -72,7 +74,7 @@ bool OpenALStream::Start()
PanicAlertT("OpenAL: can't find sound devices");
}
- // Initialise DPL2 parameters
+ // Initialize DPL2 parameters
dpl2reset();
soundTouch.clear();
diff --git a/Source/Core/Core/Src/HW/EXI_DeviceGecko.cpp b/Source/Core/Core/Src/HW/EXI_DeviceGecko.cpp
index 93b7cd5d09..ce416af7e2 100644
--- a/Source/Core/Core/Src/HW/EXI_DeviceGecko.cpp
+++ b/Source/Core/Core/Src/HW/EXI_DeviceGecko.cpp
@@ -101,7 +101,7 @@ bool GeckoSockServer::GetAvailableSock(sf::SocketTCP &sock_to_fill)
recv_fifo = std::queue<u8>();
send_fifo = std::queue<u8>();
}
- clientThread = std::thread(std::mem_fun(&GeckoSockServer::ClientThread), this);
+ clientThread = std::thread(std::mem_fn(&GeckoSockServer::ClientThread), this);
client_count++;
waiting_socks.pop();
sock_filled = true;
diff --git a/Source/Core/Core/Src/HW/WiimoteReal/IOWin.cpp b/Source/Core/Core/Src/HW/WiimoteReal/IOWin.cpp
index cc05bc10e1..30054b274c 100644
--- a/Source/Core/Core/Src/HW/WiimoteReal/IOWin.cpp
+++ b/Source/Core/Core/Src/HW/WiimoteReal/IOWin.cpp
@@ -264,7 +264,7 @@ bool Wiimote::Connect()
// Set LEDs
SetLEDs(WIIMOTE_LED_1 << index);
- m_wiimote_thread = std::thread(std::mem_fun(&Wiimote::ThreadFunc), this);
+ m_wiimote_thread = std::thread(std::mem_fn(&Wiimote::ThreadFunc), this);
// This isn't as drastic as it sounds, since the process in which the threads
// reside is normal priority. Needed for keeping audio reports at a decent rate
diff --git a/Source/Core/Core/Src/NetPlayClient.cpp b/Source/Core/Core/Src/NetPlayClient.cpp
index ef1edeeb7f..7293b615b3 100644
--- a/Source/Core/Core/Src/NetPlayClient.cpp
+++ b/Source/Core/Core/Src/NetPlayClient.cpp
@@ -70,7 +70,7 @@ NetPlayClient::NetPlayClient(const std::string& address, const u16 port, NetPlay
is_connected = true;
m_selector.Add(m_socket);
- m_thread = std::thread(std::mem_fun(&NetPlayClient::ThreadFunc), this);
+ m_thread = std::thread(std::mem_fn(&NetPlayClient::ThreadFunc), this);
}
}
else
diff --git a/Source/Core/Core/Src/NetPlayServer.cpp b/Source/Core/Core/Src/NetPlayServer.cpp
index 61a61d00ae..80e00c4656 100644
--- a/Source/Core/Core/Src/NetPlayServer.cpp
+++ b/Source/Core/Core/Src/NetPlayServer.cpp
@@ -38,7 +38,7 @@ NetPlayServer::NetPlayServer(const u16 port, const std::string& name, NetPlayUI*
is_connected = true;
m_selector.Add(m_socket);
- m_thread = std::thread(std::mem_fun(&NetPlayServer::ThreadFunc), this);
+ m_thread = std::thread(std::mem_fn(&NetPlayServer::ThreadFunc), this);
}
else
is_connected = false;
diff --git a/Source/Core/InputCommon/Src/UDPWiimote.cpp b/Source/Core/InputCommon/Src/UDPWiimote.cpp
index f14f9ed7e2..83799f2a43 100644
--- a/Source/Core/InputCommon/Src/UDPWiimote.cpp
+++ b/Source/Core/InputCommon/Src/UDPWiimote.cpp
@@ -134,7 +134,7 @@ UDPWiimote::UDPWiimote(const char *_port, const char * name, int _index) :
initBroadcastIPv6();
std::lock_guard<std::mutex> lk(d->termLock);
- d->thread = std::thread(std::mem_fun(&UDPWiimote::mainThread), this);
+ d->thread = std::thread(std::mem_fn(&UDPWiimote::mainThread), this);
return;
}