D16143: Change null pointer reference from zero to nullptr
Chris Rizzitello
noreply at phabricator.kde.org
Fri Oct 12 02:35:17 BST 2018
rizzitello requested changes to this revision.
rizzitello added a comment.
This revision now requires changes to proceed.
Check your Indentation you seam to have moved all your modified lines in a bit.
INLINE COMMENTS
> editor.cpp:427
> format = highlighter->tokenToFormat(token);
> - if (format != 0) {
> + if (format != nullptr) {
> bool bold = format->fontWeight() > 50;
In this situation we can do this.
if (pointer) {
pointer is something
} else {
pointer is null
}
since any non 0 value is true if your pointer has be initialized will be "true"
REPOSITORY
R337 KTurtle
REVISION DETAIL
https://phabricator.kde.org/D16143
To: Shroudmaster, tcanabrava, rizzitello
Cc: rizzitello, kde-edu, narvaez, apol
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-edu/attachments/20181012/10d37bb7/attachment.html>
More information about the kde-edu
mailing list