Skip to content

Commit 2148ce3

Browse files
author
Swagtoy
committed
Remove irrString c_str check
1 parent 6e89064 commit 2148ce3

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

irr/include/irrString.h

-3
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,6 @@ class string
173173
return *this;
174174
}
175175

176-
// no longer allowed!
177-
_IRR_DEBUG_BREAK_IF((void *)c == (void *)c_str());
178-
179176
u32 len = calclen(c);
180177
// We must check if the new length is different, otherwise we experience
181178
// a use-after-free. In such a case, we decide whether to resize based

0 commit comments

Comments
 (0)