diff options
Diffstat (limited to 'framework/source/uielement/recentfilesmenucontroller.cxx')
-rw-r--r-- | framework/source/uielement/recentfilesmenucontroller.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/source/uielement/recentfilesmenucontroller.cxx b/framework/source/uielement/recentfilesmenucontroller.cxx index 7b01a110db80..43c0350ded67 100644 --- a/framework/source/uielement/recentfilesmenucontroller.cxx +++ b/framework/source/uielement/recentfilesmenucontroller.cxx @@ -312,7 +312,7 @@ throw( RuntimeException ) throwIfDisposed(); - if ( aURL.Complete.indexOf( m_aBaseURL ) == 0 ) + if ( aURL.Complete.startsWith( m_aBaseURL ) ) return Reference< XDispatch >( static_cast< OWeakObject* >( this ), UNO_QUERY ); else return Reference< XDispatch >(); @@ -328,7 +328,7 @@ throw( RuntimeException ) throwIfDisposed(); - if ( aURL.Complete.indexOf( m_aBaseURL ) == 0 ) + if ( aURL.Complete.startsWith( m_aBaseURL ) ) { // Parse URL to retrieve entry argument and its value sal_Int32 nQueryPart = aURL.Complete.indexOf( '?', m_aBaseURL.getLength() ); |