[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    Re: [kdepim-runtime/frameworks] /: kdebug--
From:       laurent Montel <montel () kde ! org>
Date:       2014-08-05 6:29:52
Message-ID: 33508659.hKIKH2HC46 () linux-19td
[Download RAW message or body]

Le lundi 4 août 2014 17:44:28 David Jarvie a écrit :
> On Mon, August 4, 2014 6:20 am, Montel Laurent wrote:
> > Git commit 312b3e276ba6dee92a671f0eccf9d4f81ab03f40 by Montel Laurent.
> > Committed on 04/08/2014 at 05:20.
> > Pushed by mlaurent into branch 'frameworks'.
> > 
> > kdebug--
> > 
> > M  +1    -1    kioslave/akonadislave.cpp
> > M  +2    -2    plugins/CMakeLists.txt
> > M  +8    -7    plugins/akonadi_serializer_kalarm.cpp
> > A  +23   -0    plugins/akonadi_serializer_kalarm_debug.cpp     [License:
> > LGPL (v2+)]
> > A  +27   -0    plugins/akonadi_serializer_kalarm_debug.h     [License:
> > LGPL (v2+)]
> > M  +4    -3    plugins/akonadi_serializer_mail.cpp
> > A  +23   -0    plugins/akonadi_serializer_mail_debug.cpp     [License:
> > LGPL (v2+)]
> > A  +27   -0    plugins/akonadi_serializer_mail_debug.h     [License: LGPL
> > (v2+)]
> > M  +1    -1    plugins/autotests/CMakeLists.txt
> > M  +2    -2    resources/maildir/autotests/synctest.cpp
> > M  +5    -5    resources/maildir/libmaildir/keycache.cpp
> > M  +21   -20   resources/maildir/maildirresource.cpp
> > 
> > http://commits.kde.org/kdepim-runtime/312b3e276ba6dee92a671f0eccf9d4f81ab0
> > 3f40
> ...
> 
> > diff --git a/plugins/akonadi_serializer_kalarm.cpp
> > b/plugins/akonadi_serializer_kalarm.cpp
> > index b87a67c..a0c144c 100644
> > --- a/plugins/akonadi_serializer_kalarm.cpp
> > +++ b/plugins/akonadi_serializer_kalarm.cpp
> 
> ...
> 
> > @@ -81,7 +82,7 @@ bool SerializerPluginKAlarm::deserialize(Item& item,
> > const QByteArray& label, QI
> > 
> >      {
> >      
> >          Attribute* a = item.attribute(dummy.type());
> >          if (!a)
> > 
> > -            kError(5954) << "deserialize(): Event with uid" << event.id()
> > << "contains null attribute";
> > +            qCCritical(AKONADI_SERIALIZER_KALARM_LOG) << "deserialize():
> > Event with uid" << event.id() << "contains null attribute";
> > 
> >          else
> >          {
> >          
> >              EventAttribute* evAttr = dynamic_cast<EventAttribute*>(a);
> 
> Is it correct to replace kError() with qCCritical()? kError() isn't fatal,
> but my reading of the Qt documentation is that qCCritical() *is* fatal.
> Because qCError() doesn't exist, shouldn't kError() be replaced by
> qCWarning()?

Good question.
There is a qFatal but not a qCFatal.
So what is the diff between kError and kWarning ?

-- 
Laurent Montel | laurent.montel@kdab.com | KDE/Qt Senior Software Engineer
KDAB (France) S.A.S., a KDAB Group company
Tel. France +33 (0)4 90 84 08 53,  http://www.kdab.fr


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic