diff options
author | Noel Grandin <noel@peralex.com> | 2013-12-03 12:09:30 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-12-04 08:55:34 +0200 |
commit | 39c8524f7d9180fe500e1b5d9a272cabd72399e9 (patch) | |
tree | 79d760584089b46063d3655d6813b405f9230588 /ucb/workben | |
parent | aa4a39c9d754d0f7e953a3a642db5ad15053c63f (diff) |
remove some STRING_NOTFOUND usage
from old, probably dead code. Completely untested. But at
least it's not in my grep results anymore.
Change-Id: I9d917d0558bcab25a48fa36140beaa92150b62c9
Diffstat (limited to 'ucb/workben')
-rw-r--r-- | ucb/workben/ucb/ucbdemo.cxx | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/ucb/workben/ucb/ucbdemo.cxx b/ucb/workben/ucb/ucbdemo.cxx index ce48a6ba37db..6a7a6016aea8 100644 --- a/ucb/workben/ucb/ucbdemo.cxx +++ b/ucb/workben/ucb/ucbdemo.cxx @@ -96,10 +96,10 @@ public: //------------------------------------------------------------------------- void MyOutWindow::Append( const String &rLine ) { - String aLine( rLine ); + OUString aLine( rLine ); - xub_StrLen nPos = aLine.Search( '\n' ); - while ( nPos != STRING_NOTFOUND ) + sal_Int32 nPos = aLine.indexOf( '\n' ); + while ( nPos != -1 ) { if ( GetEntryCount() >= MYOUTWINDOW_MAXLINES ) RemoveEntry( 0 ); @@ -2254,17 +2254,16 @@ void MyApp::Main() USHORT nParams = Application::GetCommandLineParamCount(); for ( USHORT n = 0; n < nParams; ++n ) { - String aParam( Application::GetCommandLineParam( n ) ); + OUString aParam( Application::GetCommandLineParam( n ) ); if (aParam.CompareIgnoreCaseToAscii("-key=", RTL_CONSTASCII_LENGTH("-key=")) == COMPARE_EQUAL) { - xub_StrLen nSlash - = aParam.Search('/', RTL_CONSTASCII_LENGTH("-key=")); - if (nSlash == STRING_NOTFOUND) + sal_Int32 nSlash = aParam.indexOf('/', RTL_CONSTASCII_LENGTH("-key=")); + if (nSlash == -1) { aConfigurationKey1 - = aParam.Copy(RTL_CONSTASCII_LENGTH("-key=")); + = aParam.copy(RTL_CONSTASCII_LENGTH("-key=")); aConfigurationKey2 = ""; } else |