Fix GCC 8 warning: type qualifiers ignored on cast result type [-Wignored-qualifiers]
This commit is contained in:
committed by
Yorik van Havre
parent
42820cc179
commit
ec7d24e035
@@ -304,7 +304,7 @@ SbBool BlenderNavigationStyle::processSoEvent(const SoEvent * const ev)
|
||||
|
||||
// Spaceball & Joystick handling
|
||||
if (type.isDerivedFrom(SoMotion3Event::getClassTypeId())) {
|
||||
const SoMotion3Event * const event = static_cast<const SoMotion3Event * const>(ev);
|
||||
const SoMotion3Event * const event = static_cast<const SoMotion3Event *>(ev);
|
||||
if (event)
|
||||
this->processMotionEvent(event);
|
||||
processed = true;
|
||||
|
||||
@@ -346,7 +346,7 @@ SbBool CADNavigationStyle::processSoEvent(const SoEvent * const ev)
|
||||
|
||||
// Spaceball & Joystick handling
|
||||
if (type.isDerivedFrom(SoMotion3Event::getClassTypeId())) {
|
||||
const SoMotion3Event * const event = static_cast<const SoMotion3Event * const>(ev);
|
||||
const SoMotion3Event * const event = static_cast<const SoMotion3Event *>(ev);
|
||||
if (event)
|
||||
this->processMotionEvent(event);
|
||||
processed = true;
|
||||
|
||||
@@ -311,7 +311,7 @@ SbBool GestureNavigationStyle::processSoEvent(const SoEvent * const ev)
|
||||
|
||||
//mode-independent spaceball/joystick handling
|
||||
if (evIsLoc3) {
|
||||
const SoMotion3Event * const event = static_cast<const SoMotion3Event * const>(ev);
|
||||
const SoMotion3Event * const event = static_cast<const SoMotion3Event *>(ev);
|
||||
if (event)
|
||||
this->processMotionEvent(event);
|
||||
processed = true;
|
||||
@@ -547,7 +547,7 @@ SbBool GestureNavigationStyle::processSoEvent(const SoEvent * const ev)
|
||||
processed=true;
|
||||
} else if (gesture->state == SoGestureEvent::SbGSUpdate){
|
||||
if(type.isDerivedFrom(SoGesturePinchEvent::getClassTypeId())){
|
||||
const SoGesturePinchEvent* const event = static_cast<const SoGesturePinchEvent* const>(ev);
|
||||
const SoGesturePinchEvent* const event = static_cast<const SoGesturePinchEvent*>(ev);
|
||||
if (this->zoomAtCursor){
|
||||
//this is just dealing with the pan part of pinch gesture. Taking care of zooming to pos is done in doZoom.
|
||||
SbVec2f panDist = this->normalizePixelPos(event->deltaCenter.getValue());
|
||||
@@ -559,7 +559,7 @@ SbBool GestureNavigationStyle::processSoEvent(const SoEvent * const ev)
|
||||
processed = true;
|
||||
}
|
||||
if(type.isDerivedFrom(SoGesturePanEvent::getClassTypeId())){
|
||||
const SoGesturePanEvent* const event = static_cast<const SoGesturePanEvent* const>(ev);
|
||||
const SoGesturePanEvent* const event = static_cast<const SoGesturePanEvent*>(ev);
|
||||
//this is just dealing with the pan part of pinch gesture. Taking care of zooming to pos is done in doZoom.
|
||||
SbVec2f panDist = this->normalizePixelPos(event->deltaOffset);
|
||||
NavigationStyle::panCamera(viewer->getSoRenderManager()->getCamera(), ratio, this->panningplane, panDist, SbVec2f(0,0));
|
||||
|
||||
@@ -320,7 +320,7 @@ SbBool InventorNavigationStyle::processSoEvent(const SoEvent * const ev)
|
||||
|
||||
// Spaceball & Joystick handling
|
||||
if (type.isDerivedFrom(SoMotion3Event::getClassTypeId())) {
|
||||
const SoMotion3Event * const event = static_cast<const SoMotion3Event * const>(ev);
|
||||
const SoMotion3Event * const event = static_cast<const SoMotion3Event *>(ev);
|
||||
if (event)
|
||||
this->processMotionEvent(event);
|
||||
processed = true;
|
||||
|
||||
@@ -314,7 +314,7 @@ SbBool MayaGestureNavigationStyle::processSoEvent(const SoEvent * const ev)
|
||||
|
||||
//mode-independent spaceball/joystick handling
|
||||
if (evIsLoc3) {
|
||||
const SoMotion3Event * const event = static_cast<const SoMotion3Event * const>(ev);
|
||||
const SoMotion3Event * const event = static_cast<const SoMotion3Event *>(ev);
|
||||
if (event)
|
||||
this->processMotionEvent(event);
|
||||
processed = true;
|
||||
@@ -549,7 +549,7 @@ SbBool MayaGestureNavigationStyle::processSoEvent(const SoEvent * const ev)
|
||||
processed=true;
|
||||
} else if (gesture->state == SoGestureEvent::SbGSUpdate){
|
||||
if(type.isDerivedFrom(SoGesturePinchEvent::getClassTypeId())){
|
||||
const SoGesturePinchEvent* const event = static_cast<const SoGesturePinchEvent* const>(ev);
|
||||
const SoGesturePinchEvent* const event = static_cast<const SoGesturePinchEvent*>(ev);
|
||||
if (this->zoomAtCursor){
|
||||
//this is just dealing with the pan part of pinch gesture. Taking care of zooming to pos is done in doZoom.
|
||||
SbVec2f panDist = this->normalizePixelPos(event->deltaCenter.getValue());
|
||||
@@ -561,7 +561,7 @@ SbBool MayaGestureNavigationStyle::processSoEvent(const SoEvent * const ev)
|
||||
processed = true;
|
||||
}
|
||||
if(type.isDerivedFrom(SoGesturePanEvent::getClassTypeId())){
|
||||
const SoGesturePanEvent* const event = static_cast<const SoGesturePanEvent* const>(ev);
|
||||
const SoGesturePanEvent* const event = static_cast<const SoGesturePanEvent*>(ev);
|
||||
//this is just dealing with the pan part of pinch gesture. Taking care of zooming to pos is done in doZoom.
|
||||
SbVec2f panDist = this->normalizePixelPos(event->deltaOffset);
|
||||
NavigationStyle::panCamera(viewer->getSoRenderManager()->getCamera(), ratio, this->panningplane, panDist, SbVec2f(0,0));
|
||||
|
||||
@@ -313,7 +313,7 @@ SbBool OpenCascadeNavigationStyle::processSoEvent(const SoEvent * const ev)
|
||||
|
||||
// Spaceball & Joystick handling
|
||||
if (type.isDerivedFrom(SoMotion3Event::getClassTypeId())) {
|
||||
const SoMotion3Event * const event = static_cast<const SoMotion3Event * const>(ev);
|
||||
const SoMotion3Event * const event = static_cast<const SoMotion3Event *>(ev);
|
||||
if (event)
|
||||
this->processMotionEvent(event);
|
||||
processed = true;
|
||||
|
||||
@@ -302,7 +302,7 @@ SbBool RevitNavigationStyle::processSoEvent(const SoEvent * const ev)
|
||||
|
||||
// Spaceball & Joystick handling
|
||||
if (type.isDerivedFrom(SoMotion3Event::getClassTypeId())) {
|
||||
const SoMotion3Event * const event = static_cast<const SoMotion3Event * const>(ev);
|
||||
const SoMotion3Event * const event = static_cast<const SoMotion3Event *>(ev);
|
||||
if (event)
|
||||
this->processMotionEvent(event);
|
||||
processed = true;
|
||||
|
||||
@@ -284,7 +284,7 @@ SbBool TouchpadNavigationStyle::processSoEvent(const SoEvent * const ev)
|
||||
|
||||
// Spaceball & Joystick handling
|
||||
if (type.isDerivedFrom(SoMotion3Event::getClassTypeId())) {
|
||||
const SoMotion3Event * const event = static_cast<const SoMotion3Event * const>(ev);
|
||||
const SoMotion3Event * const event = static_cast<const SoMotion3Event *>(ev);
|
||||
if (event)
|
||||
this->processMotionEvent(event);
|
||||
processed = true;
|
||||
|
||||
Reference in New Issue
Block a user