include/unotools/compatibility.hxx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-)
New commits: commit 706c7161fa1dd001c658bd1837e2b8e366693641 Author: Mike Kaganski <[email protected]> AuthorDate: Thu Nov 4 12:12:08 2021 +0200 Commit: Mike Kaganski <[email protected]> CommitDate: Thu Nov 4 13:20:27 2021 +0100 Simplify SvtCompatibilityEntry::setValue Change-Id: Ic891c31298bc68ede4a01134c2e9d3c95a78fe84 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124689 Tested-by: Jenkins Reviewed-by: Mike Kaganski <[email protected]> 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
