Merging r6256 from trunk to ogl-es branch
(fixing OSX again) git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/branches/ogl-es@6257 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
// This file is part of the "Irrlicht Engine" and the "irrXML" project.
|
||||
// For conditions of distribution and use, see copyright notice in irrlicht.h and irrXML.h
|
||||
|
||||
#ifndef __IRR_STRING_H_INCLUDED__
|
||||
#define __IRR_STRING_H_INCLUDED__
|
||||
#ifndef IRR_STRING_H_INCLUDED
|
||||
#define IRR_STRING_H_INCLUDED
|
||||
|
||||
#include "irrTypes.h"
|
||||
#include "irrAllocator.h"
|
||||
@@ -429,7 +429,7 @@ public:
|
||||
//! Direct access operator
|
||||
T& operator [](const u32 index)
|
||||
{
|
||||
_IRR_DEBUG_BREAK_IF(index>=used) // bad index
|
||||
IRR_DEBUG_BREAK_IF(index>=used) // bad index
|
||||
return array[index];
|
||||
}
|
||||
|
||||
@@ -437,7 +437,7 @@ public:
|
||||
//! Direct access operator
|
||||
const T& operator [](const u32 index) const
|
||||
{
|
||||
_IRR_DEBUG_BREAK_IF(index>=used) // bad index
|
||||
IRR_DEBUG_BREAK_IF(index>=used) // bad index
|
||||
return array[index];
|
||||
}
|
||||
|
||||
@@ -1325,7 +1325,7 @@ public:
|
||||
\param index: Index of element to be erased. */
|
||||
string<T,TAlloc>& erase(u32 index)
|
||||
{
|
||||
_IRR_DEBUG_BREAK_IF(index>=used) // access violation
|
||||
IRR_DEBUG_BREAK_IF(index>=used) // access violation
|
||||
|
||||
for (u32 i=index+1; i<used; ++i)
|
||||
array[i-1] = array[i];
|
||||
|
Reference in New Issue
Block a user