Synchronized with trunk

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1167 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
LaurentGom 2009-07-11 22:38:46 +00:00
commit 1bf35973be
28 changed files with 1720 additions and 1604 deletions

View file

@ -36,9 +36,9 @@ namespace
/// Helper function to read a variable from a packet
////////////////////////////////////////////////////////////
template <typename T>
T PacketRead(sfPacket* packet, T def = 0)
T PacketRead(sfPacket* packet)
{
CSFML_CHECK_RETURN(packet, def);
CSFML_CHECK_RETURN(packet, 0);
T value;
packet->This >> value;