Changeset 13206

Show
Ignore:
Timestamp:
04/14/14 18:16:22 (6 days ago)
Author:
robert
Message:

Fixed comment

Location:
OpenSceneGraph/trunk/src/osgPlugins/RestHttpDevice
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgPlugins/RestHttpDevice/RestHttpDevice.cpp

    r13185 r13206  
    6969    virtual bool operator()(const std::string& request_path, const std::string& full_request_path, const Arguments& arguments, http::server::reply& reply) 
    7070    { 
    71         int x_min, y_min, x_max, y_max; 
     71        int x_min(0), y_min(0), x_max(0), y_max(0); 
    7272         
    7373        if (   getIntArgument(arguments, "x_min", reply, x_min) 
     
    102102    virtual bool operator()(const std::string& request_path, const std::string& full_request_path, const Arguments& arguments, http::server::reply& reply) 
    103103    { 
    104         int keycode; 
     104        int keycode(0); 
    105105         
    106106        if (getHexArgument(arguments, "code", reply, keycode)) 
     
    133133    virtual bool operator()(const std::string& request_path, const std::string& full_request_path, const Arguments& arguments, http::server::reply& reply) 
    134134    { 
    135         int x,y; 
     135        int x(0),y(0); 
    136136        if (getIntArgument(arguments, "x", reply, x) && getIntArgument(arguments, "y", reply, y)) 
    137137        { 
     
    177177    virtual bool operator()(const std::string& request_path, const std::string& full_request_path, const Arguments& arguments, http::server::reply& reply) 
    178178    { 
    179         int x,y, button; 
     179        int x(0),y(0), button(0); 
    180180 
    181181        if (getIntArgument(arguments, "x", reply, x) 
  • OpenSceneGraph/trunk/src/osgPlugins/RestHttpDevice/RestHttpDevice.hpp

    r13202 r13206  
    107107        double getTimeStamp(const Arguments& arguments, http::server::reply& reply) 
    108108        { 
    109             double time_stamp; 
     109            double time_stamp(0.0); 
    110110            getDoubleArgument(arguments, "time", reply, time_stamp); 
    111111            return time_stamp;