[Kde-pim] Review Request 120220: Coding Style for blockalarmsattribute.cpp calendarbase.cpp calendarclipboard.cpp calendarmodel.cpp calfilterproxymodel_p.cpp etmcalendar.cpp fetchjobcalendar.cpp freebusydownloadjob_p.cpp freebusymanager.cpp
Kevin Krammer
krammer at kde.org
Thu Sep 18 09:25:31 BST 2014
> On Sept. 17, 2014, 12:40 nachm., Kevin Krammer wrote:
> > akonadi-calendar/src/calendarmodel.cpp, line 41
> > <https://git.reviewboard.kde.org/r/120220/diff/1/?file=312425#file312425line41>
> >
> > hmm, if the : should go in front then the ? should probably as well.
> > Maybe with one level of intentation so that it is clear that these two lines are part of the same conditional assignment expression.
> > or leave the : where it is and just intent this line and the one before?
>
> Guy Maurel wrote:
> WE don't have any rule for that.
> May it would be better to have an if (...) else
These ternary operators can happen in situations where if/else don't work or would be awkward.
We can just leave the original formatting here, I guess
- Kevin
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/120220/#review66730
-----------------------------------------------------------
On Sept. 17, 2014, 3:59 nachm., Guy Maurel wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/120220/
> -----------------------------------------------------------
>
> (Updated Sept. 17, 2014, 3:59 nachm.)
>
>
> Review request for KDEPIM-Libraries, Dan Vrátil, Kevin Krammer, and Laurent Montel.
>
>
> Repository: kdepimlibs
>
>
> Description
> -------
>
> Details can be seen at:
> http://techbase.kde.org/Policies/Kdepim_Coding_Style
>
>
> Diffs
> -----
>
> akonadi-calendar/src/blockalarmsattribute.cpp dd8043afd565149458acde5e1d0ce7cee9ceccea
> akonadi-calendar/src/calendarbase.cpp 93e2fa8a6b0e12468d7659523db1050854f83855
> akonadi-calendar/src/calendarmodel.cpp 98736828723452e4be52f04e7c24b76ae38fba96
> akonadi-calendar/src/calfilterproxymodel_p.cpp 1db1cea53bfc95099cd259bd04c5e6216b7117e7
> akonadi-calendar/src/etmcalendar.cpp 344baa8edb2fe06ea2ef4924a1ba6ed9ea26b3c3
> akonadi-calendar/src/fetchjobcalendar.cpp 281f612a16c367e800789b488b4ceaf8db0f5c74
> akonadi-calendar/src/freebusydownloadjob_p.cpp fe669aedff4e61c2faf4ac2e4a014a60cc5f5943
> akonadi-calendar/src/freebusymanager.cpp a0c88e2397949d91eaf7df2959bb3f8605b3b7fc
>
> Diff: https://git.reviewboard.kde.org/r/120220/diff/
>
>
> Testing
> -------
>
>
> Thanks,
>
> Guy Maurel
>
>
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/
More information about the kde-pim
mailing list