pingus-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pingus-CVS] CVS: Games/Pingus/src/input multiple_button.cxx,1.1,1.2 mul


From: torangan
Subject: [Pingus-CVS] CVS: Games/Pingus/src/input multiple_button.cxx,1.1,1.2 multiple_button.hxx,1.1,1.2
Date: 9 Jul 2002 15:03:22 -0000

Update of /usr/local/cvsroot/Games/Pingus/src/input
In directory dark:/tmp/cvs-serv7520

Modified Files:
        multiple_button.cxx multiple_button.hxx 
Log Message:
pass vector by reference 


Index: multiple_button.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/input/multiple_button.cxx,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- multiple_button.cxx 8 Jul 2002 14:48:03 -0000       1.1
+++ multiple_button.cxx 9 Jul 2002 15:03:20 -0000       1.2
@@ -21,7 +21,7 @@
 
 namespace Input {
 
-  MultipleButton::MultipleButton(std::vector<Button*> buttons_) : 
buttons(buttons_) { }
+  MultipleButton::MultipleButton(const std::vector<Button*>& buttons_) : 
buttons(buttons_) { }
 
   void
   MultipleButton::update(float delta)

Index: multiple_button.hxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/input/multiple_button.hxx,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- multiple_button.hxx 8 Jul 2002 14:48:03 -0000       1.1
+++ multiple_button.hxx 9 Jul 2002 15:03:20 -0000       1.2
@@ -32,7 +32,7 @@
       
     public:
     
-      MultipleButton(std::vector<Button*> buttons_);
+      MultipleButton(const std::vector<Button*>& buttons_);
 
       virtual bool is_pressed ();
       virtual void update (float delta);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]