summaryrefslogtreecommitdiff
path: root/sfx2/source
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
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')
-rw-r--r--sfx2/source/control/emojicontrol.cxx4
-rw-r--r--sfx2/source/control/recentdocsviewitem.cxx4
-rw-r--r--sfx2/source/control/unoctitm.cxx8
-rw-r--r--sfx2/source/dialog/dinfdlg.cxx16
-rw-r--r--sfx2/source/dialog/dockwin.cxx4
-rw-r--r--sfx2/source/dialog/filedlghelper.cxx2
-rw-r--r--sfx2/source/dialog/mailmodel.cxx16
-rw-r--r--sfx2/source/dialog/templdlg.cxx4
-rw-r--r--sfx2/source/doc/doctemplates.cxx26
-rw-r--r--sfx2/source/doc/sfxbasemodel.cxx8
-rw-r--r--sfx2/source/inet/inettbc.cxx8
-rw-r--r--sfx2/source/notify/globalevents.cxx2
-rw-r--r--sfx2/source/sidebar/Theme.cxx2
-rw-r--r--sfx2/source/view/viewprn.cxx4
-rw-r--r--sfx2/source/view/viewsh.cxx2
15 files changed, 55 insertions, 55 deletions
diff --git a/sfx2/source/control/emojicontrol.cxx b/sfx2/source/control/emojicontrol.cxx
index f27f1027929e..be6e57073e5d 100644
--- a/sfx2/source/control/emojicontrol.cxx
+++ b/sfx2/source/control/emojicontrol.cxx
@@ -167,10 +167,10 @@ IMPL_STATIC_LINK(SfxEmojiControl, InsertHdl, ThumbnailViewItem*, pItem, void)
uno::Sequence<beans::PropertyValue> aArgs(2);
aArgs[0].Name = OUString::fromUtf8("Symbols");
- aArgs[0].Value = uno::makeAny(sHexText.toString());
+ aArgs[0].Value <<= sHexText.toString();
//add font settings here
aArgs[1].Name = OUString::fromUtf8("FontName");
- aArgs[1].Value = uno::makeAny(sFontName);
+ aArgs[1].Value <<= sFontName;
comphelper::dispatchCommand(".uno:InsertSymbol", aArgs);
}
diff --git a/sfx2/source/control/recentdocsviewitem.cxx b/sfx2/source/control/recentdocsviewitem.cxx
index 4005e20306b7..571ec8e4ad90 100644
--- a/sfx2/source/control/recentdocsviewitem.cxx
+++ b/sfx2/source/control/recentdocsviewitem.cxx
@@ -198,11 +198,11 @@ void RecentDocsViewItem::OpenDocument()
sal_Int32 nSize = 2;
aArgsList.realloc(nSize);
aArgsList[0].Name = "Referer";
- aArgsList[0].Value = makeAny(OUString("private:user"));
+ aArgsList[0].Value <<= OUString("private:user");
// documents will never be opened as templates
aArgsList[1].Name = "AsTemplate";
- aArgsList[1].Value = makeAny(false);
+ aArgsList[1].Value <<= false;
xDispatch = xDispatchProvider->queryDispatch(aTargetURL, "_default", 0);
diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx
index 45f96b235e6e..6e9946347b13 100644
--- a/sfx2/source/control/unoctitm.cxx
+++ b/sfx2/source/control/unoctitm.cxx
@@ -719,7 +719,7 @@ void SAL_CALL SfxDispatchController_Impl::dispatch( const css::util::URL& aURL,
sal_Int32 nIndex = lNewArgs.getLength();
lNewArgs.realloc( nIndex+1 );
lNewArgs[nIndex].Name = OUString::createFromAscii( pSlot->pUnoName );
- lNewArgs[nIndex].Value = makeAny( SfxDispatchController_Impl::getSlaveCommand( aDispatchURL ));
+ lNewArgs[nIndex].Value <<= SfxDispatchController_Impl::getSlaveCommand( aDispatchURL );
}
eMapUnit = GetCoreMetric( pShell->GetPool(), GetId() );
@@ -832,7 +832,7 @@ void SAL_CALL SfxDispatchController_Impl::addStatusListener(const css::uno::Refe
// Use special uno struct to transport don't care state
css::frame::status::ItemStatus aItemStatus;
aItemStatus.State = css::frame::status::ItemState::DONT_CARE;
- aState = makeAny( aItemStatus );
+ aState <<= aItemStatus;
}
css::frame::FeatureStateEvent aEvent;
@@ -852,7 +852,7 @@ void SAL_CALL SfxDispatchController_Impl::addStatusListener(const css::uno::Refe
// MBA: we might decide to *not* disable "invisible" slots, but this would be
// a change that needs to adjust at least the testtool
aEvent.IsEnabled = false;
- aEvent.State = makeAny( aVisibilityStatus );
+ aEvent.State <<= aVisibilityStatus;
}
aListener->statusChanged( aEvent );
@@ -939,7 +939,7 @@ void SfxDispatchController_Impl::StateChanged( sal_uInt16 nSID, SfxItemState eSt
// Use special uno struct to transport don't care state
css::frame::status::ItemStatus aItemStatus;
aItemStatus.State = css::frame::status::ItemState::DONT_CARE;
- aState = makeAny( aItemStatus );
+ aState <<= aItemStatus;
}
css::frame::FeatureStateEvent aEvent;
diff --git a/sfx2/source/dialog/dinfdlg.cxx b/sfx2/source/dialog/dinfdlg.cxx
index f799296ca8ec..07d0af89d038 100644
--- a/sfx2/source/dialog/dinfdlg.cxx
+++ b/sfx2/source/dialog/dinfdlg.cxx
@@ -2016,12 +2016,12 @@ Sequence< beans::PropertyValue > CustomPropertiesWindow::GetCustomProperties() c
bool bIsNum = const_cast< SvNumberFormatter& >( m_aNumberFormatter ).
IsNumberFormat( pLine->m_aValueEdit->GetText(), nIndex, nValue );
if ( bIsNum )
- aPropertiesSeq[i].Value = makeAny( nValue );
+ aPropertiesSeq[i].Value <<= nValue;
}
else if ( CUSTOM_TYPE_BOOLEAN == nType )
{
bool bValue = pLine->m_aYesNoButton->IsYesChecked();
- aPropertiesSeq[i].Value = makeAny( bValue );
+ aPropertiesSeq[i].Value <<= bValue;
}
else if ( CUSTOM_TYPE_DATETIME == nType )
{
@@ -2063,7 +2063,7 @@ Sequence< beans::PropertyValue > CustomPropertiesWindow::GetCustomProperties() c
else
{
OUString sValue( pLine->m_aValueEdit->GetText() );
- aPropertiesSeq[i].Value = makeAny( sValue );
+ aPropertiesSeq[i].Value <<= sValue;
}
}
}
@@ -2551,7 +2551,7 @@ Sequence< document::CmisProperty > CmisPropertiesWindow::GetCmisProperties() con
if ( bIsNum )
seqValue[k] = dValue;
}
- aPropertiesSeq[i].Value = makeAny( seqValue );
+ aPropertiesSeq[i].Value <<= seqValue;
}
else if ( CMIS_TYPE_INTEGER == sType )
{
@@ -2569,7 +2569,7 @@ Sequence< document::CmisProperty > CmisPropertiesWindow::GetCmisProperties() con
if ( bIsNum )
seqValue[k] = (sal_Int64) dValue;
}
- aPropertiesSeq[i].Value = makeAny( seqValue );
+ aPropertiesSeq[i].Value <<= seqValue;
}
else if ( CMIS_TYPE_BOOL == sType )
{
@@ -2581,7 +2581,7 @@ Sequence< document::CmisProperty > CmisPropertiesWindow::GetCmisProperties() con
bool bValue = (*it)->m_aYesButton->IsChecked();
seqValue[k] = bValue;
}
- aPropertiesSeq[i].Value = makeAny( seqValue );
+ aPropertiesSeq[i].Value <<= seqValue;
}
else if ( CMIS_TYPE_DATETIME == sType )
@@ -2599,7 +2599,7 @@ Sequence< document::CmisProperty > CmisPropertiesWindow::GetCmisProperties() con
aTmpDate.GetYear(), true );
seqValue[k] = aDateTime;
}
- aPropertiesSeq[i].Value = makeAny( seqValue );
+ aPropertiesSeq[i].Value <<= seqValue;
}
else
{
@@ -2611,7 +2611,7 @@ Sequence< document::CmisProperty > CmisPropertiesWindow::GetCmisProperties() con
OUString sValue( (*it)->m_aValueEdit->GetText() );
seqValue[k] = sValue;
}
- aPropertiesSeq[i].Value = makeAny( seqValue );
+ aPropertiesSeq[i].Value <<= seqValue;
}
}
}
diff --git a/sfx2/source/dialog/dockwin.cxx b/sfx2/source/dialog/dockwin.cxx
index ea70c9ca81cf..284111783c2c 100644
--- a/sfx2/source/dialog/dockwin.cxx
+++ b/sfx2/source/dialog/dockwin.cxx
@@ -140,14 +140,14 @@ SfxDockingWrapper::SfxDockingWrapper( vcl::Window* pParentWnd ,
uno::Sequence< uno::Any > aArgs(2);
beans::PropertyValue aPropValue;
aPropValue.Name = "Frame";
- aPropValue.Value = uno::makeAny( xFrame );
+ aPropValue.Value <<= xFrame;
aArgs[0] <<= aPropValue;
aPropValue.Name = "ResourceURL";
// create a resource URL from the nId provided by the sfx2
OUString aResourceURL( aDockWindowResourceURL );
aResourceURL += OUString::number(nId);
- aPropValue.Value = uno::makeAny( aResourceURL );
+ aPropValue.Value <<= aResourceURL;
aArgs[1] <<= aPropValue;
uno::Reference< awt::XWindow > xWindow;
diff --git a/sfx2/source/dialog/filedlghelper.cxx b/sfx2/source/dialog/filedlghelper.cxx
index 647759ca36d2..b6ff97b0a99d 100644
--- a/sfx2/source/dialog/filedlghelper.cxx
+++ b/sfx2/source/dialog/filedlghelper.cxx
@@ -1041,7 +1041,7 @@ FileDialogHelper_Impl::FileDialogHelper_Impl(
{
aInitArguments[0] <<= nTemplateDescription;
if ( mpPreferredParentWindow )
- aInitArguments[1] = makeAny( VCLUnoHelper::GetInterface( mpPreferredParentWindow ) );
+ aInitArguments[1] <<= VCLUnoHelper::GetInterface( mpPreferredParentWindow );
}
else
{
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
{
diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx
index f3d17b2427c9..5133d805ec30 100644
--- a/sfx2/source/dialog/templdlg.cxx
+++ b/sfx2/source/dialog/templdlg.cxx
@@ -1779,8 +1779,8 @@ void SfxCommonTemplateDialog_Impl::SaveFactoryStyleFilter( SfxObjectShell* i_pOb
OSL_ENSURE( i_pObjSh, "SfxCommonTemplateDialog_Impl::LoadFactoryStyleFilter(): no ObjectShell" );
Sequence< PropertyValue > lProps(1);
lProps[0].Name = "ooSetupFactoryStyleFilter";
- lProps[0].Value = makeAny(
- i_nFilter | (m_bWantHierarchical ? SFXSTYLEBIT_HIERARCHY : 0));
+ lProps[0].Value <<=
+ i_nFilter | (m_bWantHierarchical ? SFXSTYLEBIT_HIERARCHY : 0);
xModuleManager->replaceByName( getModuleIdentifier( xModuleManager, i_pObjSh ), makeAny( lProps ) );
}
diff --git a/sfx2/source/doc/doctemplates.cxx b/sfx2/source/doc/doctemplates.cxx
index 0dfd449e4727..a73219aff151 100644
--- a/sfx2/source/doc/doctemplates.cxx
+++ b/sfx2/source/doc/doctemplates.cxx
@@ -705,9 +705,9 @@ bool SfxDocTplService_Impl::addEntry( Content& rParentFolder,
aNames[2] = TARGET_URL;
Sequence< Any > aValues(3);
- aValues[0] = makeAny( rTitle );
- aValues[1] = makeAny( false );
- aValues[2] = makeAny( rTargetURL );
+ aValues[0] <<= rTitle;
+ aValues[1] <<= false;
+ aValues[2] <<= rTargetURL;
OUString aType( TYPE_LINK );
OUString aAdditionalProp( PROPERTY_TYPE );
@@ -755,8 +755,8 @@ bool SfxDocTplService_Impl::createFolder( const OUString& rNewFolderURL,
aNames[1] = IS_FOLDER;
Sequence< Any > aValues(2);
- aValues[0] = makeAny( aFolderName );
- aValues[1] = makeAny( true );
+ aValues[0] <<= aFolderName;
+ aValues[1] <<= true;
OUString aType;
@@ -820,8 +820,8 @@ bool SfxDocTplService_Impl::CreateNewUniqueFolderWithPrefix( const OUString& aPa
aNames[1] = IS_FOLDER;
Sequence< Any > aValues(2);
- aValues[0] = makeAny( aTryName );
- aValues[1] = makeAny( true );
+ aValues[0] <<= aTryName;
+ aValues[1] <<= true;
OUString aType( TYPE_FSYS_FOLDER );
@@ -886,8 +886,8 @@ OUString SfxDocTplService_Impl::CreateNewUniqueFileWithPrefix( const OUString& a
aNames[1] = IS_DOCUMENT;
Sequence< Any > aValues(2);
- aValues[0] = makeAny( aTryName );
- aValues[1] = makeAny( true );
+ aValues[0] <<= aTryName;
+ aValues[1] <<= true;
OUString aType( TYPE_FSYS_FILE );
@@ -990,7 +990,7 @@ bool SfxDocTplService_Impl::setProperty( Content& rContent,
if ( rPropValue >>= aValue )
{
maRelocator.makeRelocatableURL( aValue );
- aPropValue = makeAny( aValue );
+ aPropValue <<= aValue;
}
else
{
@@ -1001,7 +1001,7 @@ bool SfxDocTplService_Impl::setProperty( Content& rContent,
{
maRelocator.makeRelocatableURL( aValues[ n ] );
}
- aPropValue = makeAny( aValues );
+ aPropValue <<= aValues;
}
else
{
@@ -1049,7 +1049,7 @@ bool SfxDocTplService_Impl::getProperty(Content& rContent, const OUString& rProp
if ( rPropValue >>= aValue )
{
maRelocator.makeAbsoluteURL( aValue );
- rPropValue = makeAny( aValue );
+ rPropValue <<= aValue;
}
else
{
@@ -1060,7 +1060,7 @@ bool SfxDocTplService_Impl::getProperty(Content& rContent, const OUString& rProp
{
maRelocator.makeAbsoluteURL( aValues[ n ] );
}
- rPropValue = makeAny( aValues );
+ rPropValue <<= aValues;
}
else
{
diff --git a/sfx2/source/doc/sfxbasemodel.cxx b/sfx2/source/doc/sfxbasemodel.cxx
index c8d24c3fff6f..1d25ce1b8e20 100644
--- a/sfx2/source/doc/sfxbasemodel.cxx
+++ b/sfx2/source/doc/sfxbasemodel.cxx
@@ -2466,11 +2466,11 @@ void SAL_CALL SfxBaseModel::checkIn( sal_Bool bIsMajor, const OUString& rMessage
{
Sequence< beans::PropertyValue > aProps( 3 );
aProps[0].Name = "VersionMajor";
- aProps[0].Value = makeAny( bIsMajor );
+ aProps[0].Value <<= bIsMajor;
aProps[1].Name = "VersionComment";
- aProps[1].Value = makeAny( rMessage );
+ aProps[1].Value <<= rMessage;
aProps[2].Name = "CheckIn";
- aProps[2].Value = makeAny( true );
+ aProps[2].Value <<= true;
OUString sName( pMedium->GetName( ) );
storeSelf( aProps );
@@ -3373,7 +3373,7 @@ void SfxBaseModel::getGrabBagItem(css::uno::Any& rVal) const
m_pData->m_xGrabBagItem->QueryValue(rVal);
else {
uno::Sequence<beans::PropertyValue> aValue(0);
- rVal = uno::makeAny(aValue);
+ rVal <<= aValue;
}
}
diff --git a/sfx2/source/inet/inettbc.cxx b/sfx2/source/inet/inettbc.cxx
index 0fcdb557e811..ee4195d4384c 100644
--- a/sfx2/source/inet/inettbc.cxx
+++ b/sfx2/source/inet/inettbc.cxx
@@ -108,17 +108,17 @@ void SfxURLToolBoxControl_Impl::OpenURL( const OUString& rName, bool /*bNew*/ )
{
Sequence< PropertyValue > aArgs( 2 );
aArgs[0].Name = "Referer";
- aArgs[0].Value = makeAny( OUString( "private:user" ));
+ aArgs[0].Value <<= OUString( "private:user" );
aArgs[1].Name = "FileName";
- aArgs[1].Value = makeAny( OUString( aName ));
+ aArgs[1].Value <<= aName;
if ( !aFilter.isEmpty() )
{
aArgs.realloc( 4 );
aArgs[2].Name = "FilterOptions";
- aArgs[2].Value = makeAny( OUString( aOptions ));
+ aArgs[2].Value <<= aOptions;
aArgs[3].Name = "FilterName";
- aArgs[3].Value = makeAny( OUString( aFilter ));
+ aArgs[3].Value <<= aFilter;
}
SfxURLToolBoxControl_Impl::ExecuteInfo* pExecuteInfo = new SfxURLToolBoxControl_Impl::ExecuteInfo;
diff --git a/sfx2/source/notify/globalevents.cxx b/sfx2/source/notify/globalevents.cxx
index b8c0993f92ae..8b8ae93da046 100644
--- a/sfx2/source/notify/globalevents.cxx
+++ b/sfx2/source/notify/globalevents.cxx
@@ -320,7 +320,7 @@ uno::Reference< container::XEnumeration > SAL_CALL SfxGlobalEvents_Impl::createE
uno::Sequence<uno::Any> models(m_lModels.size());
for (size_t i = 0; i < m_lModels.size(); ++i)
{
- models[i] = uno::makeAny(m_lModels[i]);
+ models[i] <<= m_lModels[i];
}
uno::Reference< container::XEnumeration > xEnum(
static_cast<container::XEnumeration*>(
diff --git a/sfx2/source/sidebar/Theme.cxx b/sfx2/source/sidebar/Theme.cxx
index 706a49848bb9..1a46180d91c8 100644
--- a/sfx2/source/sidebar/Theme.cxx
+++ b/sfx2/source/sidebar/Theme.cxx
@@ -128,7 +128,7 @@ void Theme::HandleDataChange()
{
// Do not modify mbIsHighContrastMode when it was manually set.
GetCurrentTheme().mbIsHighContrastMode = Application::GetSettings().GetStyleSettings().GetHighContrastMode();
- rTheme.maRawValues[Bool_IsHighContrastModeActive] = Any(GetCurrentTheme().mbIsHighContrastMode);
+ rTheme.maRawValues[Bool_IsHighContrastModeActive] <<= GetCurrentTheme().mbIsHighContrastMode;
}
GetCurrentTheme().UpdateTheme();
diff --git a/sfx2/source/view/viewprn.cxx b/sfx2/source/view/viewprn.cxx
index 16316ad7f517..b107f9b4d269 100644
--- a/sfx2/source/view/viewprn.cxx
+++ b/sfx2/source/view/viewprn.cxx
@@ -730,13 +730,13 @@ void SfxViewShell::ExecPrint_Impl( SfxRequest &rReq )
if( nId == SID_PRINTDOCDIRECT )
{
aProps[nLen].Name = "PrintSelectionOnly";
- aProps[nLen].Value = makeAny( bSelection );
+ aProps[nLen].Value <<= bSelection;
}
else // if nId == SID_PRINTDOC ; nothing to do with the previous HACK
{
// should the printer selection and properties dialogue display an help button
aProps[nLen].Name = "HideHelpButton";
- aProps[nLen].Value = makeAny( bPrintOnHelp );
+ aProps[nLen].Value <<= bPrintOnHelp;
}
ExecPrint( aProps, bIsAPI, (nId == SID_PRINTDOCDIRECT) );
diff --git a/sfx2/source/view/viewsh.cxx b/sfx2/source/view/viewsh.cxx
index 071d6e1ceed2..eaaaa994c775 100644
--- a/sfx2/source/view/viewsh.cxx
+++ b/sfx2/source/view/viewsh.cxx
@@ -650,7 +650,7 @@ void SfxViewShell::ExecMisc_Impl( SfxRequest &rReq )
css::uno::Sequence< css::beans::PropertyValue > aArgs( 1 );
aArgs[0].Name = "FilterName";
- aArgs[0].Value = css::uno::makeAny( aFilterName );
+ aArgs[0].Value <<= aFilterName;
// Store document in the html format
try