WaE: C4244 conversion from int to USHORT
This commit is contained in:
parent
d88cf2961d
commit
cfe5073620
1 changed files with 6 additions and 4 deletions
|
@ -355,13 +355,15 @@ public:
|
|||
|
||||
virtual void GetAccessibleText( String &rText ) const;
|
||||
|
||||
void SetSubNode(USHORT nIndex, SmNode* pNode){
|
||||
int size = aSubNodes.size();
|
||||
if(size <= nIndex){
|
||||
void SetSubNode(size_t nIndex, SmNode* pNode)
|
||||
{
|
||||
size_t size = aSubNodes.size();
|
||||
if (size <= nIndex)
|
||||
{
|
||||
//Resize subnodes array
|
||||
aSubNodes.resize(nIndex + 1);
|
||||
//Set new slots to NULL
|
||||
for(int i = size; i < nIndex+1; i++)
|
||||
for (size_t i = size; i < nIndex+1; i++)
|
||||
aSubNodes[i] = NULL;
|
||||
}
|
||||
aSubNodes[nIndex] = pNode;
|
||||
|
|
Loading…
Reference in a new issue