chart2/source/controller/main/FeatureCommandDispatchBase.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
New commits: commit 0b3c87956bde83537a5d5cd1f6fcea6bdf5da7e6 Author: Mike Kaganski <mike.kagan...@collabora.com> AuthorDate: Sat Jul 5 10:25:38 2025 +0200 Commit: Mike Kaganski <mike.kagan...@collabora.com> CommitDate: Sat Jul 5 14:34:42 2025 +0200 Use map::contains Change-Id: I161a7a955266d08dc7cdbde58f29dbdbc9dc0a2e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187437 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com> diff --git a/chart2/source/controller/main/FeatureCommandDispatchBase.cxx b/chart2/source/controller/main/FeatureCommandDispatchBase.cxx index b1c5f72d1d5b..489538600591 100644 --- a/chart2/source/controller/main/FeatureCommandDispatchBase.cxx +++ b/chart2/source/controller/main/FeatureCommandDispatchBase.cxx @@ -45,8 +45,7 @@ void FeatureCommandDispatchBase::initialize() bool FeatureCommandDispatchBase::isFeatureSupported( const OUString& rCommandURL ) { - SupportedFeatures::const_iterator aIter = m_aSupportedFeatures.find( rCommandURL ); - return aIter != m_aSupportedFeatures.end(); + return m_aSupportedFeatures.contains(rCommandURL); } void FeatureCommandDispatchBase::fireStatusEvent( const OUString& rURL,