chart2/source/controller/dialogs/ChartTypeDialogController.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
New commits: commit 29c8e67981be199f19c1f7aa0fe2d0dfe97ef8c2 Author: Simon Chenery <[email protected]> AuthorDate: Tue Nov 25 20:28:12 2025 +0100 Commit: Hossein <[email protected]> CommitDate: Fri Dec 12 17:26:29 2025 +0100 tdf#158237 Use C++20 contains() in ChartTypeDialogController.cxx Change-Id: I12989b10d278515014cf55cbfaeccbf894c6a976 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194530 Tested-by: Jenkins Reviewed-by: Hossein <[email protected]> diff --git a/chart2/source/controller/dialogs/ChartTypeDialogController.cxx b/chart2/source/controller/dialogs/ChartTypeDialogController.cxx index f3e97e968738..3bf0de139659 100644 --- a/chart2/source/controller/dialogs/ChartTypeDialogController.cxx +++ b/chart2/source/controller/dialogs/ChartTypeDialogController.cxx @@ -119,8 +119,7 @@ ChartTypeDialogController::~ChartTypeDialogController() bool ChartTypeDialogController::isSubType( const OUString& rServiceName ) { const tTemplateServiceChartTypeParameterMap& rTemplateMap = getTemplateMap(); - tTemplateServiceChartTypeParameterMap::const_iterator aIt( rTemplateMap.find( rServiceName )); - return aIt != rTemplateMap.end(); + return rTemplateMap.contains( rServiceName ); } ChartTypeParameter ChartTypeDialogController::getChartTypeParameterForService( const OUString& rServiceName
