mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-11-22 00:48:09 +01:00
Remove now superfluos check from String's operator[].
This commit is contained in:
parent
91c50d4bea
commit
4fb7856b5a
@ -231,10 +231,6 @@ public:
|
||||
}
|
||||
|
||||
_FORCE_INLINE_ const CharType &operator[](int p_index) const {
|
||||
if (unlikely(p_index == _cowdata.size())) {
|
||||
return _null;
|
||||
}
|
||||
|
||||
return _cowdata.get(p_index);
|
||||
}
|
||||
_FORCE_INLINE_ CharProxy<CharType> operator[](int p_index) { return CharProxy<CharType>(p_index, _cowdata); }
|
||||
|
Loading…
Reference in New Issue
Block a user