diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2013-04-10 00:42:02 +0200 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2013-04-10 00:42:02 +0200 |
commit | 6957d013b49fdb18180f4bf414862c199ea96e26 (patch) | |
tree | 3e2c266b5394f2c4c5e0ed48970f7af1bd54f411 /sfx2 | |
parent | 4e3c5f4e50e40a40bbd0db1c249d9957e181b71d (diff) |
equalsAsciiL() -> operator==()
some more like 7e06132878a495ffb8ed9d54588e1a3ebbd0e8da
Change-Id: I42c2a208e30ce80e95d892c6123247057c823773
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/dialog/mailmodel.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sfx2/source/dialog/mailmodel.cxx b/sfx2/source/dialog/mailmodel.cxx index 2605119eef50..8df390fd1f20 100644 --- a/sfx2/source/dialog/mailmodel.cxx +++ b/sfx2/source/dialog/mailmodel.cxx @@ -130,7 +130,6 @@ void PrepareListener_Impl::disposing(const css::lang::EventObject& /*rEvent*/) t // class SfxMailModel ----------------------------------------------- static const char PDF_DOCUMENT_TYPE[] = "pdf_Portable_Document_Format"; -static const sal_uInt32 PDF_DOCUMENT_TYPE_LEN = 28; void SfxMailModel::ClearList( AddressList_Impl* pList ) { @@ -212,7 +211,7 @@ SfxMailModel::SaveResult SfxMailModel::ShowFilterOptionsDialog( uno::Sequence< beans::PropertyValue > aPropsForDialog(1); uno::Reference< document::XExporter > xExporter( xFilterDialog, uno::UNO_QUERY ); - if ( rType.equalsAsciiL( PDF_DOCUMENT_TYPE, PDF_DOCUMENT_TYPE_LEN )) + if ( rType == PDF_DOCUMENT_TYPE ) { //add an internal property, used to tell the dialog we want to set a different //string for the ok button @@ -300,7 +299,7 @@ SfxMailModel::SaveResult SfxMailModel::SaveDocumentAsFormat( OUString& rFileNamePath ) { SaveResult eRet( SAVE_ERROR ); - bool bSendAsPDF = (rType.equalsAsciiL( PDF_DOCUMENT_TYPE, PDF_DOCUMENT_TYPE_LEN )); + bool bSendAsPDF = ( rType == PDF_DOCUMENT_TYPE ); css::uno::Reference< css::lang::XMultiServiceFactory > xSMGR = ::comphelper::getProcessServiceFactory(); css::uno::Reference< css::uno::XComponentContext > xContext = ::comphelper::getProcessComponentContext(); |