include/sfx2/mailmodelapi.hxx | 2 +- sfx2/source/dialog/bluthsnd.cxx | 2 +- sfx2/source/dialog/mailmodel.cxx | 14 +++++++------- 3 files changed, 9 insertions(+), 9 deletions(-)
New commits: commit f5ba9f5b7bbf74df14e5ed51af43392d6091aba1 Author: Julien Nabet <serval2...@yahoo.fr> AuthorDate: Sat Sep 11 20:39:44 2021 +0200 Commit: Julien Nabet <serval2...@yahoo.fr> CommitDate: Sun Sep 12 07:51:14 2021 +0200 Typo: SAVE_SUCCESSFULL->SAVE_SUCCESSFUL Change-Id: I4b50e1f5ca55e756f1fd0028287eeb0c9b96439a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121962 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2...@yahoo.fr> diff --git a/include/sfx2/mailmodelapi.hxx b/include/sfx2/mailmodelapi.hxx index f701b98972ae..47d5b408659f 100644 --- a/include/sfx2/mailmodelapi.hxx +++ b/include/sfx2/mailmodelapi.hxx @@ -43,7 +43,7 @@ class SFX2_DLLPUBLIC SfxMailModel protected: enum SaveResult { - SAVE_SUCCESSFULL, + SAVE_SUCCESSFUL, SAVE_CANCELLED, SAVE_ERROR }; diff --git a/sfx2/source/dialog/bluthsnd.cxx b/sfx2/source/dialog/bluthsnd.cxx index ded98ceb0a1e..0083f0749768 100644 --- a/sfx2/source/dialog/bluthsnd.cxx +++ b/sfx2/source/dialog/bluthsnd.cxx @@ -20,7 +20,7 @@ SfxBluetoothModel::SendMailResult SfxBluetoothModel::SaveAndSend( const css::uno OUString aFileName; eSaveResult = SaveDocumentAsFormat( OUString(), xFrame, OUString(), aFileName ); - if( eSaveResult == SAVE_SUCCESSFULL ) + if( eSaveResult == SAVE_SUCCESSFUL ) { maAttachedDocuments.push_back( aFileName ); return Send(); diff --git a/sfx2/source/dialog/mailmodel.cxx b/sfx2/source/dialog/mailmodel.cxx index 5e5d079fd934..f361d92b858d 100644 --- a/sfx2/source/dialog/mailmodel.cxx +++ b/sfx2/source/dialog/mailmodel.cxx @@ -187,7 +187,7 @@ SfxMailModel::SaveResult SfxMailModel::ShowFilterOptionsDialog( rArgs[rNumArgs-1].Name = pProp->Name; rArgs[rNumArgs-1].Value = pProp->Value; } - eRet = SAVE_SUCCESSFULL; + eRet = SAVE_SUCCESSFUL; } else { @@ -541,13 +541,13 @@ SfxMailModel::SaveResult SfxMailModel::SaveDocumentAsFormat( xSMGR, xModel, aFilterName, rType, bModified, nNumArgs, aArgs ); // don't continue on dialog cancel or error - if ( eShowPDFFilterDialog != SAVE_SUCCESSFULL ) + if ( eShowPDFFilterDialog != SAVE_SUCCESSFUL ) return eShowPDFFilterDialog; } xStorable->storeToURL( aFileURL, aArgs ); rFileNamePath = aFileURL; - eRet = SAVE_SUCCESSFULL; + eRet = SAVE_SUCCESSFUL; if( !bSendAsPDF ) { @@ -607,7 +607,7 @@ SfxMailModel::SaveResult SfxMailModel::SaveDocumentAsFormat( { xStorable->storeToURL( aFileURL, aArgs ); rFileNamePath = aFileURL; - eRet = SAVE_SUCCESSFULL; + eRet = SAVE_SUCCESSFUL; } catch ( css::io::IOException& ) { @@ -649,9 +649,9 @@ SfxMailModel::SendMailResult SfxMailModel::AttachDocument( OUString sFileName; SaveResult eSaveResult = SaveDocumentAsFormat( sAttachmentTitle, xFrameOrModel, OUString()/*sDocumentType*/, sFileName ); - if ( eSaveResult == SAVE_SUCCESSFULL && !sFileName.isEmpty() ) + if ( eSaveResult == SAVE_SUCCESSFUL && !sFileName.isEmpty() ) maAttachedDocuments.push_back(sFileName); - return eSaveResult == SAVE_SUCCESSFULL ? SEND_MAIL_OK : SEND_MAIL_ERROR; + return eSaveResult == SAVE_SUCCESSFUL ? SEND_MAIL_OK : SEND_MAIL_ERROR; } SfxMailModel::SendMailResult SfxMailModel::Send( const css::uno::Reference< css::frame::XFrame >& xFrame ) @@ -781,7 +781,7 @@ SfxMailModel::SendMailResult SfxMailModel::SaveAndSend( const css::uno::Referenc eSaveResult = SaveDocumentAsFormat( OUString(), xFrame, rTypeName, aFileName ); - if ( eSaveResult == SAVE_SUCCESSFULL ) + if ( eSaveResult == SAVE_SUCCESSFUL ) { maAttachedDocuments.push_back( aFileName ); return Send( xFrame );