equalsAsciiL faster than equalsAscii & comparetoAscii(const sal_Char*)

This commit is contained in:
Caolán McNamara
2011-01-16 14:12:57 +00:00
parent b1b10adec4
commit 6d7536ce4e
14 changed files with 163 additions and 164 deletions

View File

@@ -477,8 +477,8 @@ css::uno::Reference< css::frame::XDispatch > DispatchProvider::implts_queryFrame
{
// There exist a hard coded interception for special URLs.
if (
(aURL.Complete.equalsAscii(".uno:CloseDoc" )) ||
(aURL.Complete.equalsAscii(".uno:CloseWin" ))
(aURL.Complete.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(".uno:CloseDoc"))) ||
(aURL.Complete.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(".uno:CloseWin")))
)
{
css::uno::Reference< css::frame::XDispatchProvider > xParent( xFrame->getCreator(), css::uno::UNO_QUERY );
@@ -494,7 +494,7 @@ css::uno::Reference< css::frame::XDispatch > DispatchProvider::implts_queryFrame
else
xDispatcher = implts_getOrCreateDispatchHelper( E_CLOSEDISPATCHER, xFrame );
}
else if (aURL.Complete.equalsAscii(".uno:CloseFrame"))
else if (aURL.Complete.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(".uno:CloseFrame")))
xDispatcher = implts_getOrCreateDispatchHelper( E_CLOSEDISPATCHER, xFrame );
if ( ! xDispatcher.is())