summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-01-14 13:13:47 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-01-14 13:13:47 +0000
commit5fbd9243458846208e4a36417872d8caeb3dcb82 (patch)
tree67e0f5cb8e7b77454ef88062d711d47f1eba5f8c /starmath
parenta3c9ea96b2deee09060fae80d673e262b27872bb (diff)
WaE: C4244 conversion from int to USHORT
Diffstat (limited to 'starmath')
-rw-r--r--starmath/inc/node.hxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/starmath/inc/node.hxx b/starmath/inc/node.hxx
index 5de6140f3f..9d35e6b20b 100644
--- a/starmath/inc/node.hxx
+++ b/starmath/inc/node.hxx
@@ -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;