Fix bad weak pointer usage
The assumption is that weak pointers can become null at any point in
time. Only dereference after converting to a strong pointer.
gladhorn | Nov 7 2016, 11:42 PM |
Hi, @gladhorn!
What do you think if we introduce the following rules:
What do you think about such rules? Do they look sane?
/libs/image/brushengine/kis_paintop_settings.cpp | ||
---|---|---|
80 | I feel that it is better to use full class name here instead of auto. Our policy is not very strict about that: auto is fine, when using in for loops. Don't go overboard using it in other places. But I guess it is the case :) | |
/libs/image/kis_default_bounds.cpp | ||
126 | The same :) | |
/libs/image/kis_group_layer.cc | ||
147 | I think KisLayer::image() should return already converted KisImageSP. This is not a regression though, just a note. |