1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-03 14:10:33 +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:
kgv
2019-10-19 15:38:48 +03:00
committed by apn
parent 3818aacaa5
commit 1a5007a920
15 changed files with 38 additions and 34 deletions

View File

@@ -205,7 +205,7 @@ void WNT_Window::Unmap() const
// function : DoResize
// purpose :
// =======================================================================
Aspect_TypeOfResize WNT_Window::DoResize() const
Aspect_TypeOfResize WNT_Window::DoResize()
{
if (IsVirtual())
{
@@ -259,10 +259,10 @@ Aspect_TypeOfResize WNT_Window::DoResize() const
break;
} // end switch
*((Standard_Integer* )&aXLeft ) = wp.rcNormalPosition.left;
*((Standard_Integer* )&aXRight ) = wp.rcNormalPosition.right;
*((Standard_Integer* )&aYTop ) = wp.rcNormalPosition.top;
*((Standard_Integer* )&aYBottom) = wp.rcNormalPosition.bottom;
aXLeft = wp.rcNormalPosition.left;
aXRight = wp.rcNormalPosition.right;
aYTop = wp.rcNormalPosition.top;
aYBottom = wp.rcNormalPosition.bottom;
}
return mode;