1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0028550: Foundation Classes - fix empty message passed to thrown exception

This commit is contained in:
kgv
2017-04-18 18:58:12 +03:00
committed by bugmaster
parent e87d0237d8
commit 2d2b3d53b7
142 changed files with 519 additions and 422 deletions

View File

@@ -365,8 +365,9 @@ void NCollection_BaseSequence::RemoveSeq
void NCollection_BaseSequence::RemoveSeq (const Standard_Integer theIndex,
NCollection_DelSeqNode fDel)
{
Standard_OutOfRange_Raise_if (theIndex <= 0 || theIndex > mySize, "");
Standard_OutOfRange_Raise_if (theIndex <= 0 || theIndex > mySize,
"NCollection_BaseSequence::RemoveSeq() - index is out of range");
NCollection_SeqNode * p = Find (theIndex);
if (p->Previous())
p->Previous()->SetNext (p->Next());
@@ -399,7 +400,8 @@ void NCollection_BaseSequence::RemoveSeq (const Standard_Integer From,
const Standard_Integer To,
NCollection_DelSeqNode fDel)
{
Standard_OutOfRange_Raise_if (From <= 0 || To > mySize || From > To, "");
Standard_OutOfRange_Raise_if (From <= 0 || To > mySize || From > To,
"NCollection_BaseSequence::RemoveSeq() - invalid input range");
NCollection_SeqNode * pfrom = Find(From);
NCollection_SeqNode * pto = Find(To);