summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/unotools/compatibility.hxx9
1 files changed, 1 insertions, 8 deletions
diff --git a/include/unotools/compatibility.hxx b/include/unotools/compatibility.hxx
index c74825c8f5bd..15f8b59dfee8 100644
--- a/include/unotools/compatibility.hxx
+++ b/include/unotools/compatibility.hxx
@@ -129,14 +129,7 @@ class SvtCompatibilityEntry
template<typename T>
void setValue( const Index rIdx, T rValue )
{
- if ( static_cast<size_t>(rIdx) < getElementCount() )
- {
- m_aPropertyValue[ static_cast<int>(rIdx) ] = css::uno::Any(rValue);
- } else
- {
- /* Wrong index. */
- assert( false );
- }
+ setValue(rIdx, css::uno::Any(rValue));
}
bool isDefaultEntry() const