~neon/kolourpaint/master

« back to all changes in this revision

Viewing changes to environments/document/kpDocumentEnvironment.cpp

  • Committer: Kevin Funk
  • Date: 2017-11-19 23:16:39 UTC
  • Revision ID: git-v1:b08455db1ca77205455f4c0bc3bf80b8347b5fcb
Modernize: Use nullptr where possible

Show diffs side-by-side

added added

removed removed

Lines of Context:
108
108
#endif
109
109
 
110
110
    *isTextChanged = (mainWindow ()->toolIsTextTool () !=
111
 
                     (dynamic_cast <const kpTextSelection *> (&selection) != 0));
 
111
                     (dynamic_cast <const kpTextSelection *> (&selection) != nullptr));
112
112
 
113
113
    // We don't change the Selection Tool if the new selection's
114
114
    // shape is merely different to the current tool's (e.g. rectangular