From b577d8b390f871babc1334d8f56377fcd56f676a Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Fri, 16 Feb 2007 16:47:22 +0000 Subject: [PATCH] don't look twice in the hashmap svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=634220 --- kdeeduplot/kplotwidget.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/kdeeduplot/kplotwidget.cpp b/kdeeduplot/kplotwidget.cpp index 5670b50..83a290d 100644 --- a/kdeeduplot/kplotwidget.cpp +++ b/kdeeduplot/kplotwidget.cpp @@ -273,12 +273,14 @@ void KPlotWidget::setShowObjectToolTips( bool show ) KPlotAxis* KPlotWidget::axis( Axis a ) { - return mAxes.contains( a ) ? mAxes[a] : 0; + QHash::Iterator it = mAxes.find( a ); + return it != mAxes.end() ? it.value() : 0; } const KPlotAxis* KPlotWidget::axis( Axis a ) const { - return mAxes.contains( a ) ? mAxes[a] : 0; + QHash::ConstIterator it = mAxes.find( a ); + return it != mAxes.end() ? it.value() : 0; } QList KPlotWidget::pointsUnderPoint( const QPoint& p ) const { -- 2.47.3