diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2012-02-10 01:58:15 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2012-02-10 01:59:26 +0900 |
commit | e7e0455b0285f60ba999a0a6a831f3be271f5a37 (patch) | |
tree | 612248965d3b28720ae47d93c2ddf2dcd017e30e /cui/source | |
parent | another improvement of the about dialog (diff) | |
download | core-e7e0455b0285f60ba999a0a6a831f3be271f5a37.tar.gz core-e7e0455b0285f60ba999a0a6a831f3be271f5a37.zip |
Prefer equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("...")) to equalsAscii("...")
Diffstat (limited to 'cui/source')
-rw-r--r-- | cui/source/factory/dlgfact.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cui/source/factory/dlgfact.cxx b/cui/source/factory/dlgfact.cxx index 04fa895aa1da..582542172dbd 100644 --- a/cui/source/factory/dlgfact.cxx +++ b/cui/source/factory/dlgfact.cxx @@ -1881,11 +1881,11 @@ SfxAbstractInsertObjectDialog* AbstractDialogFactory_Impl::CreateInsertObjectDia const SvObjectServerList* pList ) { InsertObjectDialog_Impl* pDlg=0; - if ( rCommand.equalsAscii(".uno:InsertObject" ) ) + if ( rCommand.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(".uno:InsertObject")) ) pDlg = new SvInsertOleDlg( pParent, xStor, pList ); - else if ( rCommand.equalsAscii(".uno:InsertPlugin" ) ) + else if ( rCommand.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(".uno:InsertPlugin")) ) pDlg = new SvInsertPlugInDialog( pParent, xStor ); - else if ( rCommand.equalsAscii(".uno:InsertObjectFloatingFrame" ) ) + else if ( rCommand.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(".uno:InsertObjectFloatingFrame")) ) pDlg = new SfxInsertFloatingFrameDialog( pParent, xStor ); if ( pDlg ) @@ -1900,7 +1900,7 @@ VclAbstractDialog* AbstractDialogFactory_Impl::CreateEditObjectDialog( Window* p const Reference < com::sun::star::embed::XEmbeddedObject >& xObj ) { InsertObjectDialog_Impl* pDlg=0; - if ( rCommand.equalsAscii(".uno:InsertObjectFloatingFrame" ) ) + if ( rCommand.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(".uno:InsertObjectFloatingFrame")) ) { pDlg = new SfxInsertFloatingFrameDialog( pParent, xObj ); pDlg->SetHelpId( rtl::OUStringToOString( rCommand, RTL_TEXTENCODING_UTF8 ) ); |