Kaydet (Commit) 27be19bd authored tarafından Tor Lillqvist's avatar Tor Lillqvist

WaE: '==' : signed/unsigned mismatch

üst deb6a43c
...@@ -598,7 +598,7 @@ void DdeService::AddFormat( sal_uLong nFmt ) ...@@ -598,7 +598,7 @@ void DdeService::AddFormat( sal_uLong nFmt )
{ {
nFmt = DdeData::GetExternalFormat( nFmt ); nFmt = DdeData::GetExternalFormat( nFmt );
for ( size_t i = 0, n = aFormats.size(); i < n; ++i ) for ( size_t i = 0, n = aFormats.size(); i < n; ++i )
if ( aFormats[ i ] == nFmt ) if ( (sal_uLong) aFormats[ i ] == nFmt )
return; return;
aFormats.push_back( nFmt ); aFormats.push_back( nFmt );
} }
...@@ -609,7 +609,7 @@ void DdeService::RemoveFormat( sal_uLong nFmt ) ...@@ -609,7 +609,7 @@ void DdeService::RemoveFormat( sal_uLong nFmt )
{ {
nFmt = DdeData::GetExternalFormat( nFmt ); nFmt = DdeData::GetExternalFormat( nFmt );
for ( DdeFormats::iterator it = aFormats.begin(); it < aFormats.end(); ++it ) { for ( DdeFormats::iterator it = aFormats.begin(); it < aFormats.end(); ++it ) {
if ( *it == nFmt ) { if ( (sal_uLong) *it == nFmt ) {
aFormats.erase( it ); aFormats.erase( it );
break; break;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment