mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-29 14:00:49 +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;
|
||||
|
@@ -51,7 +51,7 @@ public:
|
||||
virtual Aspect_Drawable NativeParentHandle() const;
|
||||
|
||||
//! Applies the resizing to the window <me>
|
||||
virtual Aspect_TypeOfResize DoResize() const;
|
||||
virtual Aspect_TypeOfResize DoResize();
|
||||
|
||||
//! Returns True if the window <me> is opened
|
||||
//! and False if the window is closed.
|
||||
|
Reference in New Issue
Block a user