mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0031067: Visualization - Aspect_Window::DoResize() should be a non-const method
Removed 'const' from Aspect_Window::DoResize() virtual method.
This commit is contained in:
@@ -81,7 +81,7 @@ void OcctWindow::Unmap() const
|
||||
// function : DoResize
|
||||
// purpose :
|
||||
// =======================================================================
|
||||
Aspect_TypeOfResize OcctWindow::DoResize() const
|
||||
Aspect_TypeOfResize OcctWindow::DoResize()
|
||||
{
|
||||
int aMask = 0;
|
||||
Aspect_TypeOfResize aMode = Aspect_TOR_UNKNOWN;
|
||||
@@ -126,10 +126,10 @@ Aspect_TypeOfResize OcctWindow::DoResize() const
|
||||
break;
|
||||
} // end switch
|
||||
|
||||
*( ( Standard_Integer* )&myXLeft ) = myWidget->rect().left();
|
||||
*( ( Standard_Integer* )&myXRight ) = myWidget->rect().right();
|
||||
*( ( Standard_Integer* )&myYTop ) = myWidget->rect().top();
|
||||
*( ( Standard_Integer* )&myYBottom) = myWidget->rect().bottom();
|
||||
myXLeft = myWidget->rect().left();
|
||||
myXRight = myWidget->rect().right();
|
||||
myYTop = myWidget->rect().top();
|
||||
myYBottom = myWidget->rect().bottom();
|
||||
}
|
||||
|
||||
return aMode;
|
||||
|
Reference in New Issue
Block a user