summaryrefslogtreecommitdiff
path: root/sw/source/filter/ww8/writerhelper.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/filter/ww8/writerhelper.hxx')
-rw-r--r--sw/source/filter/ww8/writerhelper.hxx11
1 files changed, 5 insertions, 6 deletions
diff --git a/sw/source/filter/ww8/writerhelper.hxx b/sw/source/filter/ww8/writerhelper.hxx
index e1b73dfe8131..fe873b616b6d 100644
--- a/sw/source/filter/ww8/writerhelper.hxx
+++ b/sw/source/filter/ww8/writerhelper.hxx
@@ -234,7 +234,6 @@ namespace sw
<a href="mailto:cmc@openoffice.org">Caol&aacute;n McNamara</a>
*/
template<class T> const T & item_cast(const SfxPoolItem &rItem)
- throw(std::bad_cast)
{
if (dynamic_cast<const T *>(&rItem) == nullptr)
throw std::bad_cast();
@@ -290,7 +289,7 @@ namespace sw
<a href="mailto:cmc@openoffice.org">Caol&aacute;n McNamara</a>
*/
template<class T> const T & ItemGet(const SwContentNode &rNode,
- sal_uInt16 eType) throw(std::bad_cast)
+ sal_uInt16 eType)
{
return item_cast<T>(rNode.GetAttr(eType));
}
@@ -319,7 +318,7 @@ namespace sw
<a href="mailto:cmc@openoffice.org">Caol&aacute;n McNamara</a>
*/
template<class T> const T & ItemGet(const SwFormat &rFormat,
- sal_uInt16 eType) throw(std::bad_cast, css::uno::RuntimeException)
+ sal_uInt16 eType)
{
return item_cast<T>(rFormat.GetFormatAttr(eType));
}
@@ -350,7 +349,7 @@ namespace sw
<a href="mailto:cmc@openoffice.org">Caol&aacute;n McNamara</a>
*/
template<class T> const T & ItemGet(const SfxItemSet &rSet,
- sal_uInt16 eType) throw(std::bad_cast)
+ sal_uInt16 eType)
{
return item_cast<T>(rSet.Get(eType));
}
@@ -385,7 +384,7 @@ namespace sw
<a href="mailto:cmc@openoffice.org">Caol&aacute;n McNamara</a>
*/
template<class T> const T & DefaultItemGet(const SfxItemPool &rPool,
- sal_uInt16 eType) throw(std::bad_cast)
+ sal_uInt16 eType)
{
return item_cast<T>(rPool.GetDefaultItem(eType));
}
@@ -421,7 +420,7 @@ namespace sw
<a href="mailto:cmc@openoffice.org">Caol&aacute;n McNamara</a>
*/
template<class T> const T & DefaultItemGet(const SwDoc &rDoc,
- sal_uInt16 eType) throw(std::bad_cast)
+ sal_uInt16 eType)
{
return DefaultItemGet<T>(rDoc.GetAttrPool(), eType);
}