diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2018-07-20 11:42:02 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2018-07-23 10:16:02 +0000 |
commit | 047a658aac4c01d0ec3deb0459a1a88328ed9821 (patch) | |
tree | f10c1f88233af4e79fef1a00995ab9ce1ddcd8e4 /sources/shiboken2/ApiExtractor/fileout.h | |
parent | e36aedaf2182cf81c919c5825c694c6ae3908198 (diff) |
shiboken: Add options for diff and dry-run
Refactor and breathe life back into the existing diff/dry-run
functionality of class FileOut and make it available via command line
options.
Change-Id: I32e1e262c0c2e8f107776923477fe9714ad295cf
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'sources/shiboken2/ApiExtractor/fileout.h')
-rw-r--r-- | sources/shiboken2/ApiExtractor/fileout.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sources/shiboken2/ApiExtractor/fileout.h b/sources/shiboken2/ApiExtractor/fileout.h index 539ae7a43..ed995425d 100644 --- a/sources/shiboken2/ApiExtractor/fileout.h +++ b/sources/shiboken2/ApiExtractor/fileout.h @@ -43,12 +43,8 @@ private: public: enum State { Failure, Unchanged, Success }; - FileOut(QString name); - ~FileOut() - { - if (!isDone) - done(); - } + explicit FileOut(QString name); + ~FileOut(); State done(); State done(QString *errorMessage); |