mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-18 14:27:39 +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:
@@ -389,7 +389,7 @@ void Xw_Window::Unmap() const
|
||||
// function : DoResize
|
||||
// purpose :
|
||||
// =======================================================================
|
||||
Aspect_TypeOfResize Xw_Window::DoResize() const
|
||||
Aspect_TypeOfResize Xw_Window::DoResize()
|
||||
{
|
||||
if (myXWindow == 0)
|
||||
{
|
||||
@@ -425,10 +425,10 @@ Aspect_TypeOfResize Xw_Window::DoResize() const
|
||||
default: break;
|
||||
}
|
||||
|
||||
*((Standard_Integer* )&myXLeft ) = aWinAttr.x;
|
||||
*((Standard_Integer* )&myXRight ) = aWinAttr.x + aWinAttr.width;
|
||||
*((Standard_Integer* )&myYTop ) = aWinAttr.y;
|
||||
*((Standard_Integer* )&myYBottom ) = aWinAttr.y + aWinAttr.height;
|
||||
myXLeft = aWinAttr.x;
|
||||
myXRight = aWinAttr.x + aWinAttr.width;
|
||||
myYTop = aWinAttr.y;
|
||||
myYBottom = aWinAttr.y + aWinAttr.height;
|
||||
return aMode;
|
||||
}
|
||||
|
||||
|
@@ -71,7 +71,7 @@ public:
|
||||
Standard_EXPORT virtual void Unmap() const Standard_OVERRIDE;
|
||||
|
||||
//! Applies the resizing to the window <me>
|
||||
Standard_EXPORT virtual Aspect_TypeOfResize DoResize() const Standard_OVERRIDE;
|
||||
Standard_EXPORT virtual Aspect_TypeOfResize DoResize() Standard_OVERRIDE;
|
||||
|
||||
//! Apply the mapping change to the window <me>
|
||||
Standard_EXPORT virtual Standard_Boolean DoMapping() const Standard_OVERRIDE;
|
||||
|
Reference in New Issue
Block a user