From: Stephan Kulow Date: Tue, 2 May 2006 08:57:27 +0000 (+0000) Subject: name the variable after what it does (strange API) X-Git-Tag: v3.80.2~110 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=cd139bc57efe1cef160c975a8fc091596156cf5a;p=libqmvoc.git name the variable after what it does (strange API) CCMAIL: cniehaus@kde.org svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=536469 --- diff --git a/libscience/element.cpp b/libscience/element.cpp index 84e2566..55b3e6b 100644 --- a/libscience/element.cpp +++ b/libscience/element.cpp @@ -19,6 +19,7 @@ ***************************************************************************/ #include "element.h" +#include Element::Element() { @@ -30,8 +31,9 @@ ChemicalDataObject& Element::data(ChemicalDataObject::BlueObelisk type) const if ( o->type() == type ) return *o; } - ChemicalDataObject *cdo; - return *cdo; + kFatal() << "No such object\n"; + ChemicalDataObject *crashme = 0; + return *crashme; } QVariant Element::dataAsVariant( ChemicalDataObject::BlueObelisk type ) const