summaryrefslogtreecommitdiff
path: root/2005/i/robert
diff options
context:
space:
mode:
authorhaller2005-04-17 02:33:21 +0000
committerhaller2005-04-17 02:33:21 +0000
commit1d7fbc275a24e5ea89e6d9a8a5ab7aca42b4c126 (patch)
tree204103e20b481a7d5611fb31bd101af92167e9be /2005/i/robert
parent258e6b6d84428db704ceaf14ae952fe670342f90 (diff)
Corrections de l'argument par défaut format de la fonction send
Diffstat (limited to '2005/i/robert')
-rw-r--r--2005/i/robert/src/proto/proto.hh3
1 files changed, 2 insertions, 1 deletions
diff --git a/2005/i/robert/src/proto/proto.hh b/2005/i/robert/src/proto/proto.hh
index 7b249d1..7ee5390 100644
--- a/2005/i/robert/src/proto/proto.hh
+++ b/2005/i/robert/src/proto/proto.hh
@@ -81,7 +81,7 @@ class Proto : public NonCopyable
/// Envois un packet. COMMAND est la commande à envoyer, FORMAT, donne le
/// format et le nombre de paramètres ('b' : 8 bits, 'w' : 16 bits, 'd' :
/// 32 bits, majuscule pour signé).
- void send (char command, const char *format = 0, int a0 = 0, int a1 = 0,
+ void send (char command, const char *format = "", int a0 = 0, int a1 = 0,
int a2 = 0, int a3 = 0, bool reliable = true);
/// permet d'envoyer un packet robert
void Proto::sendUnreliable (char command, const char *format, int a0,
@@ -107,6 +107,7 @@ class Proto : public NonCopyable
class Receiver
{
public:
+ virtual ~Receiver(void) {};
/// Recoit un packet.
virtual void receive (char command, const Frame &frame) = 0;
};