mirror of
https://github.com/SFML/SFML.git
synced 2024-12-01 15:51:04 +08:00
Fixed compile warnings
This commit is contained in:
parent
e9243b7ef6
commit
f2ef524b57
@ -405,7 +405,7 @@ Packet& Packet::operator <<(double data)
|
|||||||
Packet& Packet::operator <<(const char* data)
|
Packet& Packet::operator <<(const char* data)
|
||||||
{
|
{
|
||||||
// First insert string length
|
// First insert string length
|
||||||
Uint32 length = std::strlen(data);
|
Uint32 length = static_cast<Uint32>(std::strlen(data));
|
||||||
*this << length;
|
*this << length;
|
||||||
|
|
||||||
// Then insert characters
|
// Then insert characters
|
||||||
@ -434,7 +434,7 @@ Packet& Packet::operator <<(const std::string& data)
|
|||||||
Packet& Packet::operator <<(const wchar_t* data)
|
Packet& Packet::operator <<(const wchar_t* data)
|
||||||
{
|
{
|
||||||
// First insert string length
|
// First insert string length
|
||||||
Uint32 length = std::wcslen(data);
|
Uint32 length = static_cast<Uint32>(std::wcslen(data));
|
||||||
*this << length;
|
*this << length;
|
||||||
|
|
||||||
// Then insert characters
|
// Then insert characters
|
||||||
|
@ -291,7 +291,7 @@ sf::String JoystickImpl::getDeviceName(unsigned int index, JOYCAPS caps)
|
|||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
sf::String JoystickImpl::getErrorString(DWORD errorCode)
|
sf::String JoystickImpl::getErrorString(DWORD /*errorCode*/)
|
||||||
{
|
{
|
||||||
std::basic_ostringstream<TCHAR, std::char_traits<TCHAR> > ss;
|
std::basic_ostringstream<TCHAR, std::char_traits<TCHAR> > ss;
|
||||||
TCHAR errBuff[256];
|
TCHAR errBuff[256];
|
||||||
|
Loading…
Reference in New Issue
Block a user