diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-04-02 15:58:06 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-04-02 16:30:34 +0200 |
commit | 44b3e56bb4a4df59f53447c4ca4d8e02fe926206 (patch) | |
tree | 71a9efde3a6a2a00688e8feb8e3086cb32eceb4f /xmloff | |
parent | 0b4965bcd7ec911951e7ca3a4cd48062843b2634 (diff) |
Change INetProtocol to scoped enumeration
...and fix o3tl::enumarray::operator [] const overload
Change-Id: I749b1b9d68686b03a97074253478d9d2d9d32b0b
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/forms/elementexport.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/forms/elementimport.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/xmloff/source/forms/elementexport.cxx b/xmloff/source/forms/elementexport.cxx index 2f0f375e3167..9fd3a6142cd8 100644 --- a/xmloff/source/forms/elementexport.cxx +++ b/xmloff/source/forms/elementexport.cxx @@ -2116,7 +2116,7 @@ namespace xmloff if ( !m_bCreateConnectionResourceElement ) { INetURLObject aURL(sPropValue); - m_bCreateConnectionResourceElement = ( aURL.GetProtocol() == INET_PROT_FILE ); + m_bCreateConnectionResourceElement = ( aURL.GetProtocol() == INetProtocol::FILE ); if ( !m_bCreateConnectionResourceElement ) exportStringPropertyAttribute( OAttributeMetaData::getFormAttributeNamespace(faDatasource), diff --git a/xmloff/source/forms/elementimport.cxx b/xmloff/source/forms/elementimport.cxx index c41c0d76a8d6..99c0af3700c5 100644 --- a/xmloff/source/forms/elementimport.cxx +++ b/xmloff/source/forms/elementimport.cxx @@ -2061,7 +2061,7 @@ namespace xmloff OUString sValue = _xAttrList->getValueByIndex( i ); INetURLObject aURL(sValue); - if ( aURL.GetProtocol() == INET_PROT_FILE ) + if ( aURL.GetProtocol() == INetProtocol::FILE ) _xElement->setPropertyValue(PROPERTY_DATASOURCENAME,makeAny(sValue)); else _xElement->setPropertyValue(PROPERTY_URL,makeAny(sValue)); // the url is the "sdbc:" string |