mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-07-25 12:55:50 +03:00
0024820: CLang compiler warning -Wreturn-stack-address
The signature of the function BOPDS_DS::CommonBlock(const Handle(BOPDS_PaveBlock)& thePB) has been changed to return handle, not a reference to handle.
This commit is contained in:
parent
5cfb55b03b
commit
239a64e7c2
@ -283,7 +283,6 @@ is
|
|||||||
CommonBlock(me;
|
CommonBlock(me;
|
||||||
thePB:PaveBlock from BOPDS)
|
thePB:PaveBlock from BOPDS)
|
||||||
returns CommonBlock from BOPDS;
|
returns CommonBlock from BOPDS;
|
||||||
---C++: return const &
|
|
||||||
---Purpose:
|
---Purpose:
|
||||||
--- Selector
|
--- Selector
|
||||||
--- Returns the common block
|
--- Returns the common block
|
||||||
|
@ -1101,15 +1101,10 @@ Standard_Boolean BOPDS_DS::IsCommonBlock
|
|||||||
//function : CommonBlock
|
//function : CommonBlock
|
||||||
//purpose :
|
//purpose :
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
const Handle(BOPDS_CommonBlock)& BOPDS_DS::CommonBlock
|
Handle(BOPDS_CommonBlock) BOPDS_DS::CommonBlock
|
||||||
(const Handle(BOPDS_PaveBlock)& thePB) const
|
(const Handle(BOPDS_PaveBlock)& thePB) const
|
||||||
{
|
{
|
||||||
Handle(BOPDS_CommonBlock) aNullCB;
|
return (IsCommonBlock(thePB) ? myMapPBCB.Find(thePB) : NULL);
|
||||||
//
|
|
||||||
const Handle(BOPDS_CommonBlock)& aCB =
|
|
||||||
IsCommonBlock(thePB) ? myMapPBCB.Find(thePB) : aNullCB;
|
|
||||||
//
|
|
||||||
return aCB;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
|
Loading…
x
Reference in New Issue
Block a user