diff options
author | Jarek Kobus <jaroslaw.kobus@qt.io> | 2022-05-06 11:59:17 +0200 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@qt.io> | 2022-05-09 07:42:29 +0000 |
commit | 6455d7fcf34007ef3d2e32bc004ac2cf7220e33e (patch) | |
tree | a51ac5aa3f2db84a035d651e75876004044e9aa3 /src/plugins/vcsbase | |
parent | 2856091c757c61aeff1ec6e3981d4ed9c8b0a6b6 (diff) | |
download | qt-creator-6455d7fcf34007ef3d2e32bc004ac2cf7220e33e.tar.gz |
QtcProcess: Make the class final
Currently, as a result of many refactorings, the QtcProcess
is designed so that if you want to customize the behavior
you should implement custom ProcessInterface subclass.
Adding virtual methods directly to QtcProcess caused tons of
unpredicted side effects and nasty bugs, which were hard to
track and hard to fix, as provided fixes were usually fixing
particular case while introducing regressions in not related
code paths.
Consider also aggregating QtcProcess object instead of
deriving from it when some additional methods are required.
This patch removes the last virtual methods from QtcProcess API
and makes the class final in order to prevent from adding
any new virtual methods to this class in the future.
This commit message should make it clear that having subclasses
of QtcProcess is not a desired design. It's a post-mortem
conclusion. So: don't derive from QtcProcess - we mean it!
Change-Id: I1e43ed45be326b366422fd7db6e05ba48ea5fb98
Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/vcsbase')
0 files changed, 0 insertions, 0 deletions