summaryrefslogtreecommitdiff
path: root/sfx2/source/dialog/mailmodel.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-02-24 11:22:18 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-02-28 10:17:47 +0000
commit198c41c4fe8be4ce8a6ddab43ae0c5f17a4889ac (patch)
tree041d55126e9770b81f68fadfaaa69e82313786b3 /sfx2/source/dialog/mailmodel.cxx
parentd3981b3e8c021ee03a2ca7103a73e56cca18df81 (diff)
new loplugin unoany
Change-Id: I5d6c4a67cb2a09e7cd5bd620c6b262d188701b89 Reviewed-on: https://gerrit.libreoffice.org/34714 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source/dialog/mailmodel.cxx')
-rw-r--r--sfx2/source/dialog/mailmodel.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/sfx2/source/dialog/mailmodel.cxx b/sfx2/source/dialog/mailmodel.cxx
index 7792e0b98903..ac01c0fc6e6f 100644
--- a/sfx2/source/dialog/mailmodel.cxx
+++ b/sfx2/source/dialog/mailmodel.cxx
@@ -173,11 +173,11 @@ SfxMailModel::SaveResult SfxMailModel::ShowFilterOptionsDialog(
//used in filter/source/pdf/impdialog.cxx
uno::Sequence< beans::PropertyValue > aFilterDataValue(1);
aFilterDataValue[0].Name = "_OkButtonString";
- aFilterDataValue[0].Value = css::uno::makeAny(SfxResId(STR_PDF_EXPORT_SEND ).toString());
+ aFilterDataValue[0].Value <<= SfxResId(STR_PDF_EXPORT_SEND ).toString();
//add to the filterdata property, the only one the PDF export filter dialog will care for
aPropsForDialog[0].Name = "FilterData";
- aPropsForDialog[0].Value = css::uno::makeAny( aFilterDataValue );
+ aPropsForDialog[0].Value <<= aFilterDataValue;
//when executing the dialog will merge the persistent FilterData properties
xFilterProperties->setPropertyValues( aPropsForDialog );
@@ -326,9 +326,9 @@ SfxMailModel::SaveResult SfxMailModel::SaveDocumentAsFormat(
// Retrieve filter from type
css::uno::Sequence< css::beans::NamedValue > aQuery( bSendAsPDF ? 3 : 2 );
aQuery[0].Name = "Type";
- aQuery[0].Value = css::uno::makeAny( aTypeName );
+ aQuery[0].Value <<= aTypeName;
aQuery[1].Name = "DocumentService";
- aQuery[1].Value = css::uno::makeAny( aModule );
+ aQuery[1].Value <<= aModule;
if( bSendAsPDF )
{
// #i91419#
@@ -337,7 +337,7 @@ SfxMailModel::SaveResult SfxMailModel::SaveDocumentAsFormat(
// this seems to be a bug
// without flags we get an import filter here, which is also unwanted
aQuery[2].Name = "Flags";
- aQuery[2].Value = css::uno::makeAny( sal_Int32(0x80042) ); // EXPORT ALIEN 3RDPARTY
+ aQuery[2].Value <<= sal_Int32(0x80042); // EXPORT ALIEN 3RDPARTY
}
css::uno::Reference< css::container::XEnumeration > xEnumeration =
@@ -483,7 +483,7 @@ SfxMailModel::SaveResult SfxMailModel::SaveDocumentAsFormat(
const OUString aPasswordPropName( "Password" );
css::uno::Sequence< css::beans::PropertyValue > aArgs( ++nNumArgs );
aArgs[nNumArgs-1].Name = "FilterName";
- aArgs[nNumArgs-1].Value = css::uno::makeAny( aFilterName );
+ aArgs[nNumArgs-1].Value <<= aFilterName;
::comphelper::SequenceAsHashMap aMediaDescrPropsHM( xModel->getArgs() );
OUString aPassword = aMediaDescrPropsHM.getUnpackedValueOrDefault(
@@ -493,7 +493,7 @@ SfxMailModel::SaveResult SfxMailModel::SaveDocumentAsFormat(
{
aArgs.realloc( ++nNumArgs );
aArgs[nNumArgs-1].Name = aPasswordPropName;
- aArgs[nNumArgs-1].Value = css::uno::makeAny( aPassword );
+ aArgs[nNumArgs-1].Value <<= aPassword;
}
bool bNeedsPreparation = false;
@@ -623,7 +623,7 @@ SfxMailModel::SaveResult SfxMailModel::SaveDocumentAsFormat(
// We need 1:1 copy of the document to preserve an added signature.
aArgs.realloc( ++nNumArgs );
aArgs[nNumArgs-1].Name = "CopyStreamIfPossible";
- aArgs[nNumArgs-1].Value = css::uno::makeAny( true );
+ aArgs[nNumArgs-1].Value <<= true;
try
{