diff options
Diffstat (limited to 'forms/source/component/findpos.cxx')
-rw-r--r-- | forms/source/component/findpos.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/forms/source/component/findpos.cxx b/forms/source/component/findpos.cxx index ac496760809a..08c15dc1be7a 100644 --- a/forms/source/component/findpos.cxx +++ b/forms/source/component/findpos.cxx @@ -32,11 +32,11 @@ namespace detail { sal_Int32 findPos( - const ::rtl::OUString& aStr, - const ::com::sun::star::uno::Sequence< ::rtl::OUString >& rList) + const OUString& aStr, + const ::com::sun::star::uno::Sequence< OUString >& rList) { - const ::rtl::OUString* pStrList = rList.getConstArray(); - const ::rtl::OUString* pResult = ::std::lower_bound( + const OUString* pStrList = rList.getConstArray(); + const OUString* pResult = ::std::lower_bound( pStrList, pStrList + rList.getLength(), aStr ); if ( ( pResult != pStrList + rList.getLength() ) && ( *pResult == aStr ) ) return ( pResult - pStrList ); |