diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-08-11 17:00:11 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-08-12 08:32:59 +0100 |
commit | 9dd40c656feda2ccadb07d618a95b9ff63ab61ff (patch) | |
tree | 84b5e0e3bd48909413c074d52c4bc08a46cfabce /vcl/source/window/dlgctrl.cxx | |
parent | 3e9ae4da947cd9c3f75b6e4942f2ba52337df075 (diff) |
XubString->OUString
Change-Id: I04c7da143425a9d8cc4fae155ad45a469df953c1
Diffstat (limited to 'vcl/source/window/dlgctrl.cxx')
-rw-r--r-- | vcl/source/window/dlgctrl.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/vcl/source/window/dlgctrl.cxx b/vcl/source/window/dlgctrl.cxx index ad3dc48a2824..c62313089fe0 100644 --- a/vcl/source/window/dlgctrl.cxx +++ b/vcl/source/window/dlgctrl.cxx @@ -427,11 +427,11 @@ static Window* ImplFindAccelWindow( Window* pParent, sal_uInt16& rIndex, sal_Uni pWindow = ImplGetChildWindow( pParent, nFormStart, i, sal_True ); while( bSearch && pWindow ) { - const XubString aStr = pWindow->GetText(); - sal_uInt16 nPos = aStr.Search( '~' ); - while ( nPos != STRING_NOTFOUND ) + const OUString aStr = pWindow->GetText(); + sal_Int32 nPos = aStr.indexOf( '~' ); + while (nPos != -1) { - cCompareChar = aStr.GetChar( nPos+1 ); + cCompareChar = aStr[nPos+1]; cCompareChar = xCharClass->toUpper( OUString(cCompareChar), 0, 1, rLocale )[0]; if ( cCompareChar == cCharCode ) { @@ -453,7 +453,7 @@ static Window* ImplFindAccelWindow( Window* pParent, sal_uInt16& rIndex, sal_Uni rIndex = i; return pWindow; } - nPos = aStr.Search( '~', nPos+1 ); + nPos = aStr.indexOf( '~', nPos+1 ); } // #i93011# it would have made sense to have this really recursive |