summaryrefslogtreecommitdiff
path: root/dbaccess/source/filter/xml
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-01-02 21:20:07 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-01-02 21:22:19 +0000
commit29f971d0d210036656be667f58df57a25849fcee (patch)
tree4f939a6d3dd8d6f80214aa7835d5a530e515392f /dbaccess/source/filter/xml
parent48954af3bc0957da9bf0d5ef9eb07c9079285932 (diff)
micro opt
Change-Id: I2d713783f1ad533c23a3fe319e7c37b7fd0e0e0d
Diffstat (limited to 'dbaccess/source/filter/xml')
-rw-r--r--dbaccess/source/filter/xml/xmlExport.cxx8
1 files 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 );