Changeset 19842

Show
Ignore:
Timestamp:
02/22/07 21:25:17 (2 years ago)
Author:
patrick
Message:

Improve const usage.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • juggler/trunk/modules/gadgeteer/gadget/Type/KeyboardMouse/KeyEvent.cpp

    r19827 r19842  
    3636 
    3737KeyEvent::KeyEvent(const gadget::EventType type, const gadget::Keys key, 
    38                    int mask, unsigned long time, char asciiKey
    39                    wchar_t unicodeKey) 
     38                   const int mask, const unsigned long time
     39                   const char asciiKey, const wchar_t unicodeKey) 
    4040   : gadget::Event(type, time) 
    4141   , mKey(key) 
  • juggler/trunk/modules/gadgeteer/gadget/Type/KeyboardMouse/KeyEvent.h

    r19841 r19842  
    7575    */ 
    7676   KeyEvent(const gadget::EventType type, const gadget::Keys key, 
    77             int mask, unsigned long time, char asciiKey = 0, 
    78             wchar_t unicodeKey = 0); 
     77            const int mask, const unsigned long time, const char asciiKey = 0, 
     78            const wchar_t unicodeKey = 0); 
    7979 
    8080   /** 
  • juggler/trunk/modules/gadgeteer/gadget/Type/KeyboardMouse/MouseEvent.cpp

    r19729 r19842  
    3434 
    3535MouseEvent::MouseEvent(const gadget::EventType type, const gadget::Keys button, 
    36                        int x, int y, int globalX, int globalY, int state, 
    37                        unsigned long time) 
     36                       const int x, const int y, const int globalX, 
     37                       const int globalY, const int state, 
     38                       const unsigned long time) 
    3839   : gadget::Event(type, time) 
    3940   , mButton(button) 
  • juggler/trunk/modules/gadgeteer/gadget/Type/KeyboardMouse/MouseEvent.h

    r19841 r19842  
    7676    */ 
    7777   MouseEvent(const gadget::EventType type, const gadget::Keys button, 
    78               int x, int y, int globalX, int globalY, int state
    79               unsigned long time); 
     78              const int x, const int y, const int globalX, const int globalY
     79              const int state, const unsigned long time); 
    8080 
    8181   /**