summaryrefslogtreecommitdiff
path: root/extensions/source/propctrlr/formcomponenthandler.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2022-05-04 12:01:16 +0200
committerStephan Bergmann <sbergman@redhat.com>2022-05-04 19:27:44 +0200
commit5e4134535391e9977e72c7001e3b4a5eea113c3c (patch)
treec48fdca598529e9964d6029c3e2c176b836177ec /extensions/source/propctrlr/formcomponenthandler.cxx
parent031173da38de93e5153c5d2c105706df07127b99 (diff)
Just use Any ctor instead of makeAny in extensions
Change-Id: I0441d30044168563b0d5b8406fcc99b51a9cbc1e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133817 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'extensions/source/propctrlr/formcomponenthandler.cxx')
-rw-r--r--extensions/source/propctrlr/formcomponenthandler.cxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/extensions/source/propctrlr/formcomponenthandler.cxx b/extensions/source/propctrlr/formcomponenthandler.cxx
index 2bf922d1b603..d5f3976629a7 100644
--- a/extensions/source/propctrlr/formcomponenthandler.cxx
+++ b/extensions/source/propctrlr/formcomponenthandler.cxx
@@ -322,7 +322,7 @@ namespace pcr
if ( PROPERTY_ID_IMAGE_URL == nPropId && ( _rValue >>= xGrfObj ) )
{
DBG_ASSERT( xGrfObj.is(), "FormComponentPropertyHandler::setPropertyValue() xGrfObj is invalid");
- m_xComponent->setPropertyValue(PROPERTY_GRAPHIC, uno::makeAny(xGrfObj->getGraphic()));
+ m_xComponent->setPropertyValue(PROPERTY_GRAPHIC, uno::Any(xGrfObj->getGraphic()));
}
else if ( PROPERTY_ID_FONT == nPropId )
{
@@ -721,7 +721,7 @@ namespace pcr
break;
}
- aControlValue = PropertyHandlerComponent::convertToControlValue( _rPropertyName, makeAny( nNormalized ), _rControlValueType );
+ aControlValue = PropertyHandlerComponent::convertToControlValue( _rPropertyName, Any( nNormalized ), _rControlValueType );
}
break;
@@ -1488,7 +1488,7 @@ namespace pcr
OSL_PRECOND( _rxInspectorUI.is(), "lcl_rebuildAndResetCommand: invalid BrowserUI!" );
OSL_PRECOND( _rxHandler.is(), "lcl_rebuildAndResetCommand: invalid handler!" );
_rxInspectorUI->rebuildPropertyUI( PROPERTY_COMMAND );
- _rxHandler->setPropertyValue( PROPERTY_COMMAND, makeAny( OUString() ) );
+ _rxHandler->setPropertyValue( PROPERTY_COMMAND, Any( OUString() ) );
}
}
@@ -2633,11 +2633,11 @@ namespace pcr
// initialize the dialog
Reference< XPropertySet > xDialogProps( xDialog, UNO_QUERY_THROW );
- xDialogProps->setPropertyValue("QueryComposer", makeAny( xComposer ) );
- xDialogProps->setPropertyValue("RowSet", makeAny( m_xComponent ) );
+ xDialogProps->setPropertyValue("QueryComposer", Any( xComposer ) );
+ xDialogProps->setPropertyValue("RowSet", Any( m_xComponent ) );
if (auto pTopLevel = impl_getDefaultDialogFrame_nothrow())
- xDialogProps->setPropertyValue("ParentWindow", makeAny(pTopLevel->GetXWindow()));
- xDialogProps->setPropertyValue("Title", makeAny( sPropertyUIName ) );
+ xDialogProps->setPropertyValue("ParentWindow", Any(pTopLevel->GetXWindow()));
+ xDialogProps->setPropertyValue("Title", Any( sPropertyUIName ) );
_rClearBeforeDialog.clear();
bSuccess = ( xDialog->execute() != 0 );
@@ -3026,13 +3026,13 @@ namespace pcr
void FormSQLCommandUI::setSQLCommand( const OUString& _rCommand ) const
{
- m_xObject->setPropertyValue( PROPERTY_COMMAND, makeAny( _rCommand ) );
+ m_xObject->setPropertyValue( PROPERTY_COMMAND, Any( _rCommand ) );
}
void FormSQLCommandUI::setEscapeProcessing( const bool _bEscapeProcessing ) const
{
- m_xObject->setPropertyValue( PROPERTY_ESCAPE_PROCESSING, makeAny( _bEscapeProcessing ) );
+ m_xObject->setPropertyValue( PROPERTY_ESCAPE_PROCESSING, Any( _bEscapeProcessing ) );
}
@@ -3126,7 +3126,7 @@ namespace pcr
void ValueListCommandUI::setEscapeProcessing( const bool _bEscapeProcessing ) const
{
- m_xObject->setPropertyValue( PROPERTY_LISTSOURCETYPE, makeAny(
+ m_xObject->setPropertyValue( PROPERTY_LISTSOURCETYPE, Any(
_bEscapeProcessing ? ListSourceType_SQL : ListSourceType_SQLPASSTHROUGH ) );
}