From: Pino Toscano Date: Tue, 13 Feb 2007 15:33:28 +0000 (+0000) Subject: improve a check and put my name into the copyrights, as it's my code too ;) X-Git-Tag: v3.80.3~60 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=abb5bf6d91490a1f3a627f7b9980a1597469ae3b;p=libqmvoc.git improve a check and put my name into the copyrights, as it's my code too ;) svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=633233 --- diff --git a/kdeeduui/kdeeduglossary.cpp b/kdeeduui/kdeeduglossary.cpp index 12679a3..8c455e5 100644 --- a/kdeeduui/kdeeduglossary.cpp +++ b/kdeeduui/kdeeduglossary.cpp @@ -1,5 +1,6 @@ /*************************************************************************** * Copyright (C) 2005, 2006 by Carsten Niehaus * + * Copyright (C) 2005 - 2007 by Pino Toscano * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * @@ -390,9 +391,10 @@ QTreeWidgetItem* GlossaryDialog::Private::createItem( Glossary* glossary ) const void GlossaryDialog::addGlossary( Glossary* newgloss ) { - if ( !newgloss ) return; - if ( newgloss->isEmpty() ) return; - d->m_glossaries.append( newgloss ); + if ( !newgloss || newgloss->isEmpty() ) + return; + + d->m_glossaries.append( newgloss ); d->m_glosstree->addTopLevelItem( d->createItem( newgloss ) ); } diff --git a/kdeeduui/kdeeduglossary.h b/kdeeduui/kdeeduglossary.h index afa159b..31f4ad4 100644 --- a/kdeeduui/kdeeduglossary.h +++ b/kdeeduui/kdeeduglossary.h @@ -1,18 +1,13 @@ #ifndef KDEEDUGLOSSARY_H #define KDEEDUGLOSSARY_H /*************************************************************************** - - copyright : (C) 2005 by Carsten Niehaus - email : cniehaus@kde.org - ***************************************************************************/ - -/*************************************************************************** + * Copyright (C) 2005, 2006 by Carsten Niehaus * + * Copyright (C) 2005 - 2007 by Pino Toscano * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * - * * ***************************************************************************/ #include