Add explicit cast to fix build with gcc-4.8
ClosedPublic

Authored by antlarr on Mar 17 2017, 12:24 PM.

Details

Summary

Add explicit cast to fix build with gcc-4.8

Test Plan

Tested building for openSUSE Leap 42.2, which uses gcc 4.8

Diff Detail

Repository
R495 Purpose Library
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
antlarr created this revision.Mar 17 2017, 12:24 PM
fvogt added a subscriber: fvogt.Mar 17 2017, 1:09 PM
apol added inline comments.Mar 23 2017, 11:39 AM
src/externalprocess/processjob.cpp
50

Wouldn't m_process.data() be more adequate? It's weird to explicitly cast into the container...

Also it's an interesting change, I wasn't aware that QPointer didn't work in older gcc. :/

antlarr added inline comments.Mar 23 2017, 12:12 PM
src/externalprocess/processjob.cpp
50

I think it's clearer to have an explicit cast to make a cast from a pointer-like object than calling m_process.data() which looks like it's getting some data from a QProcess object. If the argument doesn't convince you and you still want me to change that, tell me and I'll change it.

apol accepted this revision.Mar 23 2017, 12:33 PM
This revision is now accepted and ready to land.Mar 23 2017, 12:33 PM
This revision was automatically updated to reflect the committed changes.