From Ulrich Hertlein, "Attached is a patch that introduces 'static_cast<unsigned int>' on some instances where
the code returns '.size()' of a std::vector. This caused some warnings when using clang++ on OS X."
This commit is contained in:
@@ -416,7 +416,7 @@ public:
|
||||
META_Object(osgGA, TouchData);
|
||||
|
||||
|
||||
unsigned int getNumTouchPoints() const { return _touches.size(); }
|
||||
unsigned int getNumTouchPoints() const { return static_cast<unsigned int>(_touches.size()); }
|
||||
|
||||
iterator begin() { return _touches.begin(); }
|
||||
const_iterator begin() const { return _touches.begin(); }
|
||||
|
||||
Reference in New Issue
Block a user