From: Pino Toscano Date: Fri, 16 Feb 2007 16:47:22 +0000 (+0000) Subject: don't look twice in the hashmap X-Git-Tag: v3.80.3~54 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=b577d8b390f871babc1334d8f56377fcd56f676a;p=libqmvoc.git don't look twice in the hashmap svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=634220 --- 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 {