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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user