From: kgv Date: Wed, 13 Jan 2021 13:31:49 +0000 (+0300) Subject: # 0032039: fix compiler warning X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=8094959a6d0f7085e5edca7f5dca7d20329ae989;p=occt-copy.git # 0032039: fix compiler warning --- diff --git a/src/OpenGl/OpenGl_ShadowMap.cxx b/src/OpenGl/OpenGl_ShadowMap.cxx index 7d8c074558..53d0a8b792 100644 --- a/src/OpenGl/OpenGl_ShadowMap.cxx +++ b/src/OpenGl/OpenGl_ShadowMap.cxx @@ -148,7 +148,7 @@ void OpenGl_ShadowMapArray::Release (OpenGl_Context* theCtx) { if (const Handle(OpenGl_ShadowMap)& aShadow = ChangeValue (anIter)) { - ChangeValue (anIter)->Release (theCtx); + aShadow->Release (theCtx); } } } @@ -164,7 +164,7 @@ Standard_Size OpenGl_ShadowMapArray::EstimatedDataSize() const { if (const Handle(OpenGl_ShadowMap)& aShadow = Value (anIter)) { - aSize += Value (anIter)->EstimatedDataSize(); + aSize += aShadow->EstimatedDataSize(); } } return aSize;