summaryrefslogtreecommitdiff
path: root/soltools
diff options
context:
space:
mode:
authorTor Lillqvist <tlillqvist@novell.com>2011-02-03 00:42:20 +0200
committerTor Lillqvist <tlillqvist@novell.com>2011-02-03 00:44:33 +0200
commit422b2c72a315d209a4fbcaae1d87394eb9e732a7 (patch)
tree6390b8ba155f2ebb0a9f00c67fdcaa4c879dcd80 /soltools
parent6ade6fe1e657b1c8092f6a6c18a4c7776590973d (diff)
Silence compiler warnings
Diffstat (limited to 'soltools')
-rw-r--r--soltools/giparser/gi_list.cxx6
-rw-r--r--soltools/inc/st_list.hxx4
2 files changed, 5 insertions, 5 deletions
diff --git a/soltools/giparser/gi_list.cxx b/soltools/giparser/gi_list.cxx
index 902ab283d0da..ec03d0a6cd94 100644
--- a/soltools/giparser/gi_list.cxx
+++ b/soltools/giparser/gi_list.cxx
@@ -143,9 +143,9 @@ List_GenericInfo::InsertInfoByPath( GenericInfo * let_dpInfo,
{
Simstr aKey( i_sKeyPath,
0,
- sNextPathSegment -
+ (int)(sNextPathSegment -
( *sNextPathSegment == 0 ? 0 : 1)
- - i_sKeyPath );
+ - i_sKeyPath ));
GenericInfo * pNew = new GenericInfo(aKey);
InsertInfo(pNew,false);
@@ -209,7 +209,7 @@ List_GenericInfo::lower_bound( bool & o_bExists,
KeyPath i_sKeyPath )
{
o_sNextPathSegment = strchr(i_sKeyPath, '/');
- Simstr sKey( i_sKeyPath, (o_sNextPathSegment == 0 ? strlen(i_sKeyPath) : o_sNextPathSegment++ - i_sKeyPath) );
+ Simstr sKey( i_sKeyPath, (int)(o_sNextPathSegment == 0 ? strlen(i_sKeyPath) : o_sNextPathSegment++ - i_sKeyPath) );
GenericInfo aSearch(sKey);
unsigned low = 0;
diff --git a/soltools/inc/st_list.hxx b/soltools/inc/st_list.hxx
index da7e91c979b5..66a85c1255bb 100644
--- a/soltools/inc/st_list.hxx
+++ b/soltools/inc/st_list.hxx
@@ -63,7 +63,7 @@ class ST_List /// Soltools-List.
void insert(
iterator i_aPos,
const XX & elem_ )
- { Insert(i_aPos-begin(), elem_); }
+ { Insert((unsigned)(i_aPos-begin()), elem_); }
virtual void Insert(
unsigned pos,
const XX & elem );
@@ -72,7 +72,7 @@ class ST_List /// Soltools-List.
{ Insert(size(),elem_); }
void remove(
iterator i_aPos )
- { Remove(i_aPos-begin()); }
+ { Remove((int)(i_aPos-begin())); }
virtual void Remove(
unsigned pos );
void pop_back() { Remove(size()-1); }