From 29f971d0d210036656be667f58df57a25849fcee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Mon, 2 Jan 2017 21:20:07 +0000 Subject: [PATCH] micro opt Change-Id: I2d713783f1ad533c23a3fe319e7c37b7fd0e0e0d --- dbaccess/source/filter/xml/xmlExport.cxx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/dbaccess/source/filter/xml/xmlExport.cxx b/dbaccess/source/filter/xml/xmlExport.cxx index 43d530df2e7f..cd1d864eedbd 100644 --- a/dbaccess/source/filter/xml/xmlExport.cxx +++ b/dbaccess/source/filter/xml/xmlExport.cxx @@ -665,13 +665,9 @@ void ODBExport::exportDataSourceSettings() ::std::vector< TypedPropertyValue >::const_iterator aEnd = m_aDataSourceSettings.end(); for ( ; aIter != aEnd; ++aIter ) { - bool bIsSequence = TypeClass_SEQUENCE == aIter->Type.getTypeClass(); + const bool bIsSequence = TypeClass_SEQUENCE == aIter->Type.getTypeClass(); - Type aSimpleType; - if ( bIsSequence ) - aSimpleType = ::comphelper::getSequenceElementType( aIter->Value.getValueType() ); - else - aSimpleType = aIter->Type; + Type aSimpleType(bIsSequence ? comphelper::getSequenceElementType(aIter->Value.getValueType()) : aIter->Type); AddAttribute( XML_NAMESPACE_DB, XML_DATA_SOURCE_SETTING_IS_LIST,bIsSequence ? XML_TRUE : XML_FALSE ); AddAttribute( XML_NAMESPACE_DB, XML_DATA_SOURCE_SETTING_NAME, aIter->Name );