diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-01-16 15:48:11 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-01-16 15:48:11 +0000 |
commit | c50b50c778c0625bf10e9f67831146b6ffdcbb9c (patch) | |
tree | 5372bf36fd6b3d2427cf36b91accf43292331a2c | |
parent | 5671a987946532a9a119b98c2e677e07c7dc372d (diff) |
equalsAsciiL faster than equals
-rw-r--r-- | framework/inc/dispatchcommands.h | 2 | ||||
-rw-r--r-- | framework/source/dispatch/dispatchprovider.cxx | 2 | ||||
-rw-r--r-- | framework/source/dispatch/startmoduledispatcher.cxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/framework/inc/dispatchcommands.h b/framework/inc/dispatchcommands.h index 978fd66efe8f..fc279d9dac3d 100644 --- a/framework/inc/dispatchcommands.h +++ b/framework/inc/dispatchcommands.h @@ -43,7 +43,7 @@ namespace framework{ //_________________________________________________________________________________________________________________ -static ::rtl::OUString CMD_UNO_SHOWSTARTMODULE(RTL_CONSTASCII_USTRINGPARAM(".uno:ShowStartModule")); +#define CMD_UNO_SHOWSTARTMODULE ".uno:ShowStartModule" } // namespace framework diff --git a/framework/source/dispatch/dispatchprovider.cxx b/framework/source/dispatch/dispatchprovider.cxx index 86c52fb15b52..1b1bfc263335 100644 --- a/framework/source/dispatch/dispatchprovider.cxx +++ b/framework/source/dispatch/dispatchprovider.cxx @@ -226,7 +226,7 @@ css::uno::Sequence< css::uno::Reference< css::frame::XDispatch > > SAL_CALL Disp ::sal_Bool lcl_isStartModuleDispatch (const css::util::URL& aURL) { - return (aURL.Complete.equals(CMD_UNO_SHOWSTARTMODULE)); + return (aURL.Complete.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(CMD_UNO_SHOWSTARTMODULE))); } //_________________________________________________________________________________________________________________ diff --git a/framework/source/dispatch/startmoduledispatcher.cxx b/framework/source/dispatch/startmoduledispatcher.cxx index d5b6a9d287d0..755935a3a5bd 100644 --- a/framework/source/dispatch/startmoduledispatcher.cxx +++ b/framework/source/dispatch/startmoduledispatcher.cxx @@ -120,7 +120,7 @@ void SAL_CALL StartModuleDispatcher::dispatchWithNotification(const css::util::U throw(css::uno::RuntimeException) { ::sal_Int16 nResult = css::frame::DispatchResultState::DONTKNOW; - if (aURL.Complete.equals (CMD_UNO_SHOWSTARTMODULE)) + if (aURL.Complete.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(CMD_UNO_SHOWSTARTMODULE))) { nResult = css::frame::DispatchResultState::FAILURE; if (implts_isBackingModePossible ()) |