diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2021-11-04 12:12:08 +0200 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-11-04 13:20:27 +0100 |
commit | 706c7161fa1dd001c658bd1837e2b8e366693641 (patch) | |
tree | f83cb489d63196ecf011b8a078890a26ceed041b /include | |
parent | 01cbdcc6dd0cf575997e9899496115ac41ab4be1 (diff) |
Simplify SvtCompatibilityEntry::setValue
Change-Id: Ic891c31298bc68ede4a01134c2e9d3c95a78fe84
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124689
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/unotools/compatibility.hxx | 9 |
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 |