diff options
-rw-r--r-- | svl/source/svdde/ddesvr.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/svl/source/svdde/ddesvr.cxx b/svl/source/svdde/ddesvr.cxx index 383e9d67e3fb..24817fce2b32 100644 --- a/svl/source/svdde/ddesvr.cxx +++ b/svl/source/svdde/ddesvr.cxx @@ -92,8 +92,8 @@ HDDEDATA CALLBACK _export DdeInternal::SvrCallback( { if( hText1 ) { - sal_uInt16 n = 0; - while( STRING_NOTFOUND != n ) + sal_Int32 n = 0; + while( -1 != n ) { rtl::OUString s( sTopics.GetToken( 0, '\t', n )); if( s == reinterpret_cast<const sal_Unicode*>(chTopicBuf) ) @@ -120,8 +120,8 @@ HDDEDATA CALLBACK _export DdeInternal::SvrCallback( if ( !hText2 || (*pService->pName == hText2 ) ) { String sTopics( pService->Topics() ); - sal_uInt16 n = 0; - while( STRING_NOTFOUND != n ) + sal_Int32 n = 0; + while( -1 != n ) { rtl::OUString s( sTopics.GetToken( 0, '\t', n )); s = comphelper::string::remove(s, '\n'); |