replace <<= with assign for <<= with rhs Any

makeAny and Any ctor return an Any

Change-Id: Iaa361bc315d785f80153acf1009bf47d109728ec
Reviewed-on: https://gerrit.libreoffice.org/29914
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
This commit is contained in:
Jochen Nitschke 2016-10-16 09:40:42 +02:00
parent a8cfb651ac
commit 9ac8a57e52
23 changed files with 89 additions and 92 deletions

View file

@ -137,19 +137,19 @@ namespace accessibility
}
if( pBox && (pBox->HasFocus() || bNeedFocus) )
{
uno::Any aOldValue, aNewValue;
uno::Any aNewValue;
SvTreeListEntry* pEntry = static_cast< SvTreeListEntry* >( rVclWindowEvent.GetData() );
if ( pEntry )
{
AccessibleListBoxEntry* pEntryFocus =static_cast< AccessibleListBoxEntry* >(m_xFocusedChild.get());
if (pEntryFocus && pEntryFocus->GetSvLBoxEntry() == pEntry)
{
aOldValue <<= uno::Any();
aNewValue <<= m_xFocusedChild;
NotifyAccessibleEvent( AccessibleEventId::ACTIVE_DESCENDANT_CHANGED, aOldValue, aNewValue );
NotifyAccessibleEvent( AccessibleEventId::ACTIVE_DESCENDANT_CHANGED, uno::Any(), aNewValue );
return ;
}
uno::Any aOldValue;
aOldValue <<= m_xFocusedChild;
MAP_ENTRY::iterator mi = m_mapEntry.find(pEntry);
@ -170,9 +170,8 @@ namespace accessibility
}
else
{
aOldValue <<= uno::Any();
aNewValue <<= AccessibleStateType::FOCUSED;
NotifyAccessibleEvent( AccessibleEventId::STATE_CHANGED, aOldValue, aNewValue );
NotifyAccessibleEvent( AccessibleEventId::STATE_CHANGED, uno::Any(), aNewValue );
}
}
}

View file

@ -2694,10 +2694,10 @@ RTLFUNC(SYD)
// retrieve non-optional params
Sequence< Any > aParams( 4 );
aParams[ 0 ] <<= makeAny( rPar.Get(1)->GetDouble() );
aParams[ 1 ] <<= makeAny( rPar.Get(2)->GetDouble() );
aParams[ 2 ] <<= makeAny( rPar.Get(3)->GetDouble() );
aParams[ 3 ] <<= makeAny( rPar.Get(4)->GetDouble() );
aParams[ 0 ] = makeAny( rPar.Get(1)->GetDouble() );
aParams[ 1 ] = makeAny( rPar.Get(2)->GetDouble() );
aParams[ 2 ] = makeAny( rPar.Get(3)->GetDouble() );
aParams[ 3 ] = makeAny( rPar.Get(4)->GetDouble() );
CallFunctionAccessFunction( aParams, "SYD", rPar.Get( 0 ) );
}
@ -2718,9 +2718,9 @@ RTLFUNC(SLN)
// retrieve non-optional params
Sequence< Any > aParams( 3 );
aParams[ 0 ] <<= makeAny( rPar.Get(1)->GetDouble() );
aParams[ 1 ] <<= makeAny( rPar.Get(2)->GetDouble() );
aParams[ 2 ] <<= makeAny( rPar.Get(3)->GetDouble() );
aParams[ 0 ] = makeAny( rPar.Get(1)->GetDouble() );
aParams[ 1 ] = makeAny( rPar.Get(2)->GetDouble() );
aParams[ 2 ] = makeAny( rPar.Get(3)->GetDouble() );
CallFunctionAccessFunction( aParams, "SLN", rPar.Get( 0 ) );
}
@ -2876,7 +2876,7 @@ RTLFUNC(NPV)
}
Sequence< Any > aParams( 2 );
aParams[ 0 ] <<= makeAny( rPar.Get(1)->GetDouble() );
aParams[ 0 ] = makeAny( rPar.Get(1)->GetDouble() );
Any aValues = sbxToUnoValue( rPar.Get(2),
cppu::UnoType<Sequence<double>>::get() );
@ -2960,8 +2960,8 @@ RTLFUNC(MIRR)
aValues <<= sValues;
aParams[ 0 ] <<= aValues;
aParams[ 1 ] <<= makeAny( rPar.Get(2)->GetDouble() );
aParams[ 2 ] <<= makeAny( rPar.Get(3)->GetDouble() );
aParams[ 1 ] = makeAny( rPar.Get(2)->GetDouble() );
aParams[ 2 ] = makeAny( rPar.Get(3)->GetDouble() );
CallFunctionAccessFunction( aParams, "MIRR", rPar.Get( 0 ) );
}

View file

@ -1700,11 +1700,11 @@ bool SvxBoxItem::QueryValue( uno::Any& rVal, sal_uInt8 nMemberId ) const
aSeq[1] = uno::makeAny( SvxBoxItem::SvxLineToLine(GetRight(), bConvert) );
aSeq[2] = uno::makeAny( SvxBoxItem::SvxLineToLine(GetBottom(), bConvert) );
aSeq[3] = uno::makeAny( SvxBoxItem::SvxLineToLine(GetTop(), bConvert) );
aSeq[4] <<= uno::makeAny( (sal_Int32)(bConvert ? convertTwipToMm100( GetSmallestDistance()) : GetSmallestDistance()));
aSeq[5] <<= uno::makeAny( (sal_Int32)(bConvert ? convertTwipToMm100( nTopDist ) : nTopDist ));
aSeq[6] <<= uno::makeAny( (sal_Int32)(bConvert ? convertTwipToMm100( nBottomDist ) : nBottomDist ));
aSeq[7] <<= uno::makeAny( (sal_Int32)(bConvert ? convertTwipToMm100( nLeftDist ) : nLeftDist ));
aSeq[8] <<= uno::makeAny( (sal_Int32)(bConvert ? convertTwipToMm100( nRightDist ) : nRightDist ));
aSeq[4] = uno::makeAny( (sal_Int32)(bConvert ? convertTwipToMm100( GetSmallestDistance()) : GetSmallestDistance()));
aSeq[5] = uno::makeAny( (sal_Int32)(bConvert ? convertTwipToMm100( nTopDist ) : nTopDist ));
aSeq[6] = uno::makeAny( (sal_Int32)(bConvert ? convertTwipToMm100( nBottomDist ) : nBottomDist ));
aSeq[7] = uno::makeAny( (sal_Int32)(bConvert ? convertTwipToMm100( nLeftDist ) : nLeftDist ));
aSeq[8] = uno::makeAny( (sal_Int32)(bConvert ? convertTwipToMm100( nRightDist ) : nRightDist ));
rVal = uno::makeAny( aSeq );
return true;
}
@ -3088,7 +3088,7 @@ bool SvxLineItem::QueryValue( uno::Any& rVal, sal_uInt8 nMemId ) const
nMemId &= ~CONVERT_TWIPS;
if ( nMemId == 0 )
{
rVal <<= uno::makeAny( SvxBoxItem::SvxLineToLine(pLine, bConvert) );
rVal = uno::makeAny( SvxBoxItem::SvxLineToLine(pLine, bConvert) );
return true;
}
else if ( pLine )

View file

@ -1792,7 +1792,7 @@ bool SvxBackgroundColorItem::QueryValue( uno::Any& rVal, sal_uInt8 nMemberId ) c
{
case MID_GRAPHIC_TRANSPARENT:
{
rVal <<= css::uno::makeAny<bool>(aColor.GetTransparency() == 0xff);
rVal = css::uno::makeAny<bool>(aColor.GetTransparency() == 0xff);
break;
}
default:

View file

@ -144,8 +144,8 @@ bool doParameterTest(const Reference<XInvocation> & inv)
arArgs[0] <<= (sal_Int32) 123;
Sequence<Any> seqPositional2(arArgs, 1);
arArgs[0] <<= Any();
arArgs[1] <<= Any();
arArgs[0].clear();
arArgs[1].clear();
Sequence<Any> seqPositional3(arArgs, 2);
arArgs[0] <<= (sal_Int32) 123;
@ -172,7 +172,7 @@ bool doParameterTest(const Reference<XInvocation> & inv)
arArgs1[3] <<= arg4;
Sequence<Any> seqMix(arArgs1, 4);
arArgs1[0] <<= Any();
arArgs1[0].clear();
arArgs1[1] <<= (sal_Int32) 456;
arArgs1[2] <<= arg4;
Sequence<Any> seqMix2(arArgs1, 3);
@ -184,7 +184,7 @@ bool doParameterTest(const Reference<XInvocation> & inv)
Sequence<Any> seqMixOut(arArgs1, 4);
arArgs1[0] <<= SCode(DISP_E_PARAMNOTFOUND);
arArgs1[1] <<= Any();
arArgs1[1].clear();
arArgs1[2] <<= arg4;
Sequence<Any> seqMix2Out(arArgs1, 3);
@ -455,17 +455,17 @@ bool doPropertyWithArgumentTest(const Reference<XInvocation> & inv)
Sequence<Any> seqOut;
Any arMultiArgs[3];
arMultiArgs[0] <<= makeAny((sal_Int32) 0);
arMultiArgs[1] <<= makeAny((sal_Int32) 0);
arMultiArgs[0] = makeAny((sal_Int32) 0);
arMultiArgs[1] = makeAny((sal_Int32) 0);
arMultiArgs[2] <<= PropertyPutArgument(makeAny((sal_Int32) 0));
Sequence<Any> seqMultiArgPut0(arMultiArgs, 3);
arMultiArgs[0] <<= makeAny((sal_Int32) 1);
arMultiArgs[1] <<= makeAny((sal_Int32) 2);
arMultiArgs[0] = makeAny((sal_Int32) 1);
arMultiArgs[1] = makeAny((sal_Int32) 2);
arMultiArgs[2] <<= PropertyPutArgument(makeAny((sal_Int32) 3));
Sequence<Any> seqMultiArgPut1(arMultiArgs, 3);
arMultiArgs[0] <<= makeAny((sal_Int32) 1);
arMultiArgs[0] = makeAny((sal_Int32) 1);
arMultiArgs[1] <<= PropertyPutArgument(makeAny((sal_Int32) 3));
Sequence<Any> seqMultiArgPut2(arMultiArgs, 2);
@ -477,26 +477,26 @@ bool doPropertyWithArgumentTest(const Reference<XInvocation> & inv)
arMultiArgs[1] <<= NamedArgument(OUString(L"val3"), makeAny((sal_Int32) 3));
Sequence<Any> seqMultiArgPut4(arMultiArgs, 2);
arMultiArgs[0] <<= makeAny((sal_Int32) 0);
arMultiArgs[1] <<= makeAny((sal_Int32) 0);
arMultiArgs[0] = makeAny((sal_Int32) 0);
arMultiArgs[1] = makeAny((sal_Int32) 0);
Sequence<Any> seqMultiArgGet0(arMultiArgs, 2);
arMultiArgs[0] <<= makeAny((sal_Int32) 1);
arMultiArgs[1] <<= makeAny((sal_Int32) 2);
arMultiArgs[0] = makeAny((sal_Int32) 1);
arMultiArgs[1] = makeAny((sal_Int32) 2);
Sequence<Any> seqMultiArgGet1(arMultiArgs, 2);
Sequence<Any> seqMultiArgGet2(arMultiArgs, 1);
arMultiArgs[0] <<= makeAny((sal_Int32) 0);
arMultiArgs[0] = makeAny((sal_Int32) 0);
arMultiArgs[1] <<= PropertyPutArgument(makeAny((sal_Int32) 0));
Sequence<Any> seqMultiArgPut5(arMultiArgs, 2);
arMultiArgs[0] <<= makeAny((sal_Int32) 1);
arMultiArgs[0] = makeAny((sal_Int32) 1);
arMultiArgs[1] <<= PropertyPutArgument(makeAny((sal_Int32) 2));
Sequence<Any> seqMultiArgPut6(arMultiArgs, 2);
arMultiArgs[0] <<= Any();
arMultiArgs[1] <<= Any();
arMultiArgs[0].clear();
arMultiArgs[1].clear();
Sequence<Any> seqMultiVoid(arMultiArgs, 2);
arMultiArgs[0] = makeAny((sal_Int32) 0);

View file

@ -306,7 +306,7 @@ void SAL_CALL BaseDispatch::dispatch( const URL& aURL, const Sequence < Property
aEvent.Source = (::com::sun::star::frame::XDispatch*) this;
aEvent.IsEnabled = mbButtonEnabled;
aEvent.Requery = sal_False;
aEvent.State <<= Any();
aEvent.State = Any();
// Notify listener about new state
Reference < XDispatch > xDispatch = aListenerHelper.GetDispatch( mxFrame, aURL.Path );
@ -345,7 +345,7 @@ void SAL_CALL BaseDispatch::addStatusListener( const Reference< XStatusListener
aEvent.Source = (::com::sun::star::frame::XDispatch*) this;
aEvent.IsEnabled = mbButtonEnabled;
aEvent.Requery = sal_False;
aEvent.State <<= Any();
aEvent.State = Any();
xControl->statusChanged( aEvent );
}
else if ( aURL.Path == "ComboboxCmd" )
@ -356,7 +356,7 @@ void SAL_CALL BaseDispatch::addStatusListener( const Reference< XStatusListener
aEvent.Source = (::com::sun::star::frame::XDispatch*) this;
aEvent.IsEnabled = sal_True;
aEvent.Requery = sal_False;
aEvent.State <<= Any();
aEvent.State = Any();
xControl->statusChanged( aEvent );
}
else if ( aURL.Path == "ToggleDropdownButtonCmd" )

View file

@ -81,15 +81,15 @@ void ScConditionalFormatTest::testCondFormat()
uno::Sequence< beans::PropertyValue > aPropertyValueList(5);
aPropertyValueList[0].Name = SC_UNONAME_STYLENAME;
aPropertyValueList[0].Value <<= uno::makeAny<OUString>("Result2");
aPropertyValueList[0].Value = uno::makeAny<OUString>("Result2");
aPropertyValueList[1].Name = SC_UNONAME_FORMULA1;
aPropertyValueList[1].Value <<= uno::makeAny<OUString>("$Sheet1.$B$2");
aPropertyValueList[1].Value = uno::makeAny<OUString>("$Sheet1.$B$2");
aPropertyValueList[2].Name = SC_UNONAME_FORMULA2;
aPropertyValueList[2].Value <<= uno::makeAny<OUString>("$Sheet1.$A$2");
aPropertyValueList[2].Value = uno::makeAny<OUString>("$Sheet1.$A$2");
aPropertyValueList[3].Name = SC_UNONAME_OPERATOR;
aPropertyValueList[3].Value <<= sheet::ConditionOperator_EQUAL;
aPropertyValueList[4].Name = SC_UNONAME_SOURCEPOS;
aPropertyValueList[4].Value <<= uno::makeAny(table::CellAddress(0, 0, 16));
aPropertyValueList[4].Value = uno::makeAny(table::CellAddress(0, 0, 16));
xSheetConditionalEntries->addNew(aPropertyValueList);
CPPUNIT_ASSERT_EQUAL(sal_Int32(2), xSheetConditionalEntries->getCount());
xProps->setPropertyValue(SC_UNONAME_CONDFMT, uno::makeAny(xSheetConditionalEntries));

View file

@ -473,7 +473,7 @@ bool ScChildrenShapes::ReplaceChild (::accessibility::AccessibleShape* pCurrentC
AccessibleEventObject aEvent;
aEvent.EventId = AccessibleEventId::CHILD;
aEvent.Source = uno::Reference< XAccessibleContext >(mpAccessibleDocument);
aEvent.OldValue <<= uno::makeAny(uno::Reference<XAccessible>(pCurrentChild));
aEvent.OldValue = uno::makeAny(uno::Reference<XAccessible>(pCurrentChild));
mpAccessibleDocument->CommitChange(aEvent); // child is gone - event
@ -483,7 +483,7 @@ bool ScChildrenShapes::ReplaceChild (::accessibility::AccessibleShape* pCurrentC
AccessibleEventObject aEvent;
aEvent.EventId = AccessibleEventId::CHILD;
aEvent.Source = uno::Reference< XAccessibleContext >(mpAccessibleDocument);
aEvent.NewValue <<= uno::makeAny(uno::Reference<XAccessible>(pReplacement.get()));
aEvent.NewValue = uno::makeAny(uno::Reference<XAccessible>(pReplacement.get()));
mpAccessibleDocument->CommitChange(aEvent); // child is new - event
bResult = true;
@ -1313,7 +1313,7 @@ void ScChildrenShapes::RemoveShape(const uno::Reference<drawing::XShape>& xShape
AccessibleEventObject aEvent;
aEvent.EventId = AccessibleEventId::CHILD;
aEvent.Source = uno::Reference< XAccessibleContext >(mpAccessibleDocument);
aEvent.OldValue <<= uno::makeAny(xOldAccessible);
aEvent.OldValue = uno::makeAny(xOldAccessible);
mpAccessibleDocument->CommitChange(aEvent); // child is gone - event
}

View file

@ -530,14 +530,14 @@ void ScAccessibleSpreadsheet::Notify( SfxBroadcaster& rBC, const SfxHint& rHint
sal_uInt16 nTab = rViewData.GetTabNo();
ScRange aMarkRange;
refScMarkData.GetMarkArea(aMarkRange);
aEvent.OldValue <<= css::uno::Any();
aEvent.OldValue.clear();
//Mark All
if ( !bNewPosCellFocus &&
(bNewMarked || bIsMark || bIsMultMark ) &&
aMarkRange == ScRange( 0,0,nTab, MAXCOL,MAXROW,nTab ) )
{
aEvent.EventId = AccessibleEventId::SELECTION_CHANGED_WITHIN;
aEvent.NewValue <<= css::uno::Any();
aEvent.NewValue.clear();
CommitChange(aEvent);
return ;
}
@ -569,7 +569,7 @@ void ScAccessibleSpreadsheet::Notify( SfxBroadcaster& rBC, const SfxHint& rHint
if( !bSelSmaller )
{
aEvent.EventId = AccessibleEventId::SELECTION_CHANGED_WITHIN;
aEvent.NewValue <<= css::uno::Any();
aEvent.NewValue.clear();
CommitChange(aEvent);
}
m_aLastWithInMarkRange = aMarkRange;
@ -627,7 +627,7 @@ void ScAccessibleSpreadsheet::Notify( SfxBroadcaster& rBC, const SfxHint& rHint
if(CalcScRangeListDifferenceMax(mpMarkedRanges,&m_LastMarkedRanges,10,vecNew))
{
aEvent.EventId = AccessibleEventId::SELECTION_CHANGED_WITHIN;
aEvent.NewValue <<= css::uno::Any();
aEvent.NewValue.clear();
CommitChange(aEvent);
}
else
@ -723,7 +723,6 @@ void ScAccessibleSpreadsheet::RemoveSelection(ScMarkData &refScMarkData)
{
AccessibleEventObject aEvent;
aEvent.Source = uno::Reference< XAccessible >(this);
aEvent.OldValue <<= css::uno::Any();
MAP_ADDR_XACC::iterator miRemove = m_mapSelectionSend.begin();
for(; miRemove != m_mapSelectionSend.end() ;)
{
@ -1610,7 +1609,7 @@ void ScAccessibleSpreadsheet::NotifyRefMode()
if ( nNewSize > 10 )
{
aEvent.EventId = AccessibleEventId::SELECTION_CHANGED_WITHIN;
aEvent.NewValue <<= css::uno::Any();
aEvent.NewValue.clear();
CommitChange(aEvent);
}
else
@ -1646,7 +1645,6 @@ void ScAccessibleSpreadsheet::RemoveFormulaSelection(bool bRemoveAll )
{
AccessibleEventObject aEvent;
aEvent.Source = uno::Reference< XAccessible >(this);
aEvent.OldValue <<= css::uno::Any();
MAP_ADDR_XACC::iterator miRemove = m_mapFormulaSelectionSend.begin();
for(; miRemove != m_mapFormulaSelectionSend.end() ;)
{

View file

@ -620,12 +620,12 @@ FuInsertChart::FuInsertChart(ScTabViewShell* pViewSh, vcl::Window* pWin, ScDrawV
uno::Any* pArray = aSeq.getArray();
beans::PropertyValue aParam1;
aParam1.Name = "ParentWindow";
aParam1.Value <<= uno::makeAny(xDialogParentWindow);
aParam1.Value = uno::makeAny(xDialogParentWindow);
beans::PropertyValue aParam2;
aParam2.Name = "ChartModel";
aParam2.Value <<= uno::makeAny(xChartModel);
pArray[0] <<= uno::makeAny(aParam1);
pArray[1] <<= uno::makeAny(aParam2);
aParam2.Value = uno::makeAny(xChartModel);
pArray[0] = uno::makeAny(aParam1);
pArray[1] = uno::makeAny(aParam2);
xInit->initialize( aSeq );
// try to set the dialog's position so it doesn't hide the chart

View file

@ -1755,8 +1755,8 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq )
Any* pArray = aSeq.getArray();
PropertyValue aParam;
aParam.Name = "ParentWindow";
aParam.Value <<= makeAny(xDialogParentWindow);
pArray[0] <<= makeAny(aParam);
aParam.Value = makeAny(xDialogParentWindow);
pArray[0] = makeAny(aParam);
xInit->initialize( aSeq );
//execute dialog

View file

@ -207,8 +207,8 @@ void FuHangulHanjaConversion::StartChineseConversion()
Any* pArray = aSeq.getArray();
PropertyValue aParam;
aParam.Name = "ParentWindow";
aParam.Value <<= makeAny(xDialogParentWindow);
pArray[0] <<= makeAny(aParam);
aParam.Value = makeAny(xDialogParentWindow);
pArray[0] = makeAny(aParam);
xInit->initialize( aSeq );
//execute dialog

View file

@ -2019,12 +2019,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 = makeAny( nValue );
}
else if ( CUSTOM_TYPE_BOOLEAN == nType )
{
bool bValue = pLine->m_aYesNoButton->IsYesChecked();
aPropertiesSeq[i].Value <<= makeAny( bValue );
aPropertiesSeq[i].Value = makeAny( bValue );
}
else if ( CUSTOM_TYPE_DATETIME == nType )
{
@ -2066,7 +2066,7 @@ Sequence< beans::PropertyValue > CustomPropertiesWindow::GetCustomProperties() c
else
{
OUString sValue( pLine->m_aValueEdit->GetText() );
aPropertiesSeq[i].Value <<= makeAny( sValue );
aPropertiesSeq[i].Value = makeAny( sValue );
}
}
}
@ -2554,7 +2554,7 @@ Sequence< document::CmisProperty > CmisPropertiesWindow::GetCmisProperties() con
if ( bIsNum )
seqValue[k] = dValue;
}
aPropertiesSeq[i].Value <<= makeAny( seqValue );
aPropertiesSeq[i].Value = makeAny( seqValue );
}
else if ( CMIS_TYPE_INTEGER == sType )
{
@ -2572,7 +2572,7 @@ Sequence< document::CmisProperty > CmisPropertiesWindow::GetCmisProperties() con
if ( bIsNum )
seqValue[k] = (sal_Int64) dValue;
}
aPropertiesSeq[i].Value <<= makeAny( seqValue );
aPropertiesSeq[i].Value = makeAny( seqValue );
}
else if ( CMIS_TYPE_BOOL == sType )
{
@ -2584,7 +2584,7 @@ Sequence< document::CmisProperty > CmisPropertiesWindow::GetCmisProperties() con
bool bValue = (*it)->m_aYesButton->IsChecked();
seqValue[k] = bValue;
}
aPropertiesSeq[i].Value <<= makeAny( seqValue );
aPropertiesSeq[i].Value = makeAny( seqValue );
}
else if ( CMIS_TYPE_DATETIME == sType )
@ -2602,7 +2602,7 @@ Sequence< document::CmisProperty > CmisPropertiesWindow::GetCmisProperties() con
aTmpDate.GetYear(), true );
seqValue[k] = aDateTime;
}
aPropertiesSeq[i].Value <<= makeAny( seqValue );
aPropertiesSeq[i].Value = makeAny( seqValue );
}
else
{
@ -2614,7 +2614,7 @@ Sequence< document::CmisProperty > CmisPropertiesWindow::GetCmisProperties() con
OUString sValue( (*it)->m_aValueEdit->GetText() );
seqValue[k] = sValue;
}
aPropertiesSeq[i].Value <<= makeAny( seqValue );
aPropertiesSeq[i].Value = makeAny( seqValue );
}
}
}

View file

@ -1046,7 +1046,7 @@ FileDialogHelper_Impl::FileDialogHelper_Impl(
{
aInitArguments[0] <<= nTemplateDescription;
if ( mpPreferredParentWindow )
aInitArguments[1] <<= makeAny( VCLUnoHelper::GetInterface( mpPreferredParentWindow ) );
aInitArguments[1] = makeAny( VCLUnoHelper::GetInterface( mpPreferredParentWindow ) );
}
else
{

View file

@ -504,8 +504,8 @@ void SwAccessibleParagraph::InvalidateCursorPos_()
if(m_bLastHasSelection || bCurSelection )
{
aEvent.EventId = AccessibleEventId::TEXT_SELECTION_CHANGED;
aEvent.OldValue <<= uno::Any();
aEvent.NewValue <<= uno::Any();
aEvent.OldValue.clear();
aEvent.NewValue.clear();
FireAccessibleEvent(aEvent);
}
m_bLastHasSelection =bCurSelection;

View file

@ -2666,7 +2666,7 @@ OUString SwDBManager::LoadAndRegisterDataSource(const DBConnURITypes type, const
break;
case DBCONN_MSJET:
case DBCONN_MSACE:
aSuppressVersionsAny <<= uno::makeAny(true);
aSuppressVersionsAny = uno::makeAny(true);
break;
}

View file

@ -1287,8 +1287,8 @@ void SwAnnotationShell::ExecLingu(SfxRequest &rReq)
Any* pArray = aSeq.getArray();
PropertyValue aParam;
aParam.Name = "ParentWindow";
aParam.Value <<= makeAny(xDialogParentWindow);
pArray[0] <<= makeAny(aParam);
aParam.Value = makeAny(xDialogParentWindow);
pArray[0] = makeAny(aParam);
xInit->initialize( aSeq );
//execute dialog

View file

@ -326,8 +326,8 @@ void SwDrawTextShell::ExecDrawLingu(SfxRequest &rReq)
Any* pArray = aSequence.getArray();
PropertyValue aParam;
aParam.Name = "ParentWindow";
aParam.Value <<= makeAny(xDialogParentWindow);
pArray[0] <<= makeAny(aParam);
aParam.Value = makeAny(xDialogParentWindow);
pArray[0] = makeAny(aParam);
xInit->initialize( aSequence );
//execute dialog

View file

@ -186,12 +186,12 @@ void SwInsertChart(vcl::Window* pParent, SfxBindings* pBindings )
uno::Any* pArray = aSeq.getArray();
beans::PropertyValue aParam1;
aParam1.Name = "ParentWindow";
aParam1.Value <<= uno::makeAny(xDialogParentWindow);
aParam1.Value = uno::makeAny(xDialogParentWindow);
beans::PropertyValue aParam2;
aParam2.Name = "ChartModel";
aParam2.Value <<= uno::makeAny(xChartModel);
pArray[0] <<= uno::makeAny(aParam1);
pArray[1] <<= uno::makeAny(aParam2);
aParam2.Value = uno::makeAny(xChartModel);
pArray[0] = uno::makeAny(aParam1);
pArray[1] = uno::makeAny(aParam2);
xInit->initialize( aSeq );
// try to set the dialog's position so it doesn't hide the chart

View file

@ -133,8 +133,8 @@ void SwView::ExecLingu(SfxRequest &rReq)
Any* pArray = aSeq.getArray();
PropertyValue aParam;
aParam.Name = "ParentWindow";
aParam.Value <<= makeAny(xDialogParentWindow);
pArray[0] <<= makeAny(aParam);
aParam.Value = makeAny(xDialogParentWindow);
pArray[0] = makeAny(aParam);
xInit->initialize( aSeq );
//execute dialog

View file

@ -947,7 +947,7 @@ void DomainMapper_Impl::CheckUnregisteredFrameConversion( )
beans::PropertyValue aRet;
uno::Sequence<beans::PropertyValue> aGrabBag(1);
aRet.Name = "ParaFrameProperties";
aRet.Value <<= uno::Any(rAppendContext.pLastParagraphProperties->IsFrameMode());
aRet.Value = uno::makeAny(rAppendContext.pLastParagraphProperties->IsFrameMode());
aGrabBag[0] = aRet;
aFrameProperties.push_back(comphelper::makePropertyValue("FrameInteropGrabBag", aGrabBag));
@ -1986,7 +1986,7 @@ void DomainMapper_Impl::PushShapeContext( const uno::Reference< drawing::XShape
uno::Sequence<beans::PropertyValue> aShapeGrabBag(1);
beans::PropertyValue aRet;
aRet.Name = "SdtEndBefore";
aRet.Value <<= uno::makeAny(true);
aRet.Value = uno::makeAny(true);
aShapeGrabBag[0] = aRet;
xShapePropertySet->setPropertyValue("InteropGrabBag",uno::makeAny(aShapeGrabBag));
}
@ -4774,7 +4774,7 @@ void DomainMapper_Impl::ImportGraphic(const writerfilter::Reference< Properties
uno::Sequence<beans::PropertyValue> aFrameGrabBag(1);
beans::PropertyValue aRet;
aRet.Name = "SdtEndBefore";
aRet.Value <<= uno::makeAny(true);
aRet.Value = uno::makeAny(true);
aFrameGrabBag[0] = aRet;
xPropertySet->setPropertyValue("FrameInteropGrabBag",uno::makeAny(aFrameGrabBag));
}

View file

@ -373,7 +373,7 @@ void SchXMLPlotAreaContext::StartElement( const uno::Reference< xml::sax::XAttri
{
if( maChartTypeServiceName == "com.sun.star.chart2.AreaChartType" || maChartTypeServiceName == "com.sun.star.chart2.LineChartType" )
{
aDeepProperty <<= uno::makeAny( true );
aDeepProperty = uno::makeAny( true );
}
}
}

View file

@ -469,7 +469,7 @@ void SigningTest::test96097Calc()
aTempFileSaveCopy.EnableKillingFile();
uno::Sequence<beans::PropertyValue> descSaveACopy(2);
descSaveACopy[0].Name = "SaveACopy";
descSaveACopy[0].Value <<= uno::makeAny(true);
descSaveACopy[0].Value = uno::makeAny(true);
descSaveACopy[1].Name = "FilterName";
descSaveACopy[1].Value <<= OUString("calc8");
xDocStorable->storeToURL(aTempFileSaveCopy.GetURL(), descSaveACopy);
@ -517,7 +517,7 @@ void SigningTest::test96097Doc()
aTempFileSaveCopy.EnableKillingFile();
uno::Sequence<beans::PropertyValue> descSaveACopy(2);
descSaveACopy[0].Name = "SaveACopy";
descSaveACopy[0].Value <<= uno::makeAny(true);
descSaveACopy[0].Value = uno::makeAny(true);
descSaveACopy[1].Name = "FilterName";
descSaveACopy[1].Value <<= OUString("writer8");
xDocStorable->storeToURL(aTempFileSaveCopy.GetURL(), descSaveACopy);