diff options
Diffstat (limited to 'sdext/source/pdfimport/sax/saxattrlist.cxx')
-rw-r--r-- | sdext/source/pdfimport/sax/saxattrlist.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sdext/source/pdfimport/sax/saxattrlist.cxx b/sdext/source/pdfimport/sax/saxattrlist.cxx index 6fa5db9bd3cd..5b65cd9cd531 100644 --- a/sdext/source/pdfimport/sax/saxattrlist.cxx +++ b/sdext/source/pdfimport/sax/saxattrlist.cxx @@ -54,37 +54,37 @@ namespace { } } -sal_Int16 SAL_CALL SaxAttrList::getLength() throw(std::exception) +sal_Int16 SAL_CALL SaxAttrList::getLength() { return sal_Int16(m_aAttributes.size()); } -OUString SAL_CALL SaxAttrList::getNameByIndex( sal_Int16 i_nIndex ) throw(std::exception) +OUString SAL_CALL SaxAttrList::getNameByIndex( sal_Int16 i_nIndex ) { return (i_nIndex < sal_Int16(m_aAttributes.size())) ? m_aAttributes[i_nIndex].m_aName : OUString(); } -OUString SAL_CALL SaxAttrList::getTypeByIndex( sal_Int16 i_nIndex) throw(std::exception) +OUString SAL_CALL SaxAttrList::getTypeByIndex( sal_Int16 i_nIndex) { return (i_nIndex < sal_Int16(m_aAttributes.size())) ? getCDATAString() : OUString(); } -OUString SAL_CALL SaxAttrList::getTypeByName( const OUString& i_rName ) throw(std::exception) +OUString SAL_CALL SaxAttrList::getTypeByName( const OUString& i_rName ) { return (m_aIndexMap.find( i_rName ) != m_aIndexMap.end()) ? getCDATAString() : OUString(); } -OUString SAL_CALL SaxAttrList::getValueByIndex( sal_Int16 i_nIndex ) throw(std::exception) +OUString SAL_CALL SaxAttrList::getValueByIndex( sal_Int16 i_nIndex ) { return (i_nIndex < sal_Int16(m_aAttributes.size())) ? m_aAttributes[i_nIndex].m_aValue : OUString(); } -OUString SAL_CALL SaxAttrList::getValueByName(const OUString& i_rName) throw(std::exception) +OUString SAL_CALL SaxAttrList::getValueByName(const OUString& i_rName) { std::unordered_map< OUString, size_t, OUStringHash >::const_iterator it = m_aIndexMap.find( i_rName ); return (it != m_aIndexMap.end()) ? m_aAttributes[it->second].m_aValue : OUString(); } -css::uno::Reference< css::util::XCloneable > SAL_CALL SaxAttrList::createClone() throw(std::exception) +css::uno::Reference< css::util::XCloneable > SAL_CALL SaxAttrList::createClone() { return new SaxAttrList( *this ); } |