diff options
author | João Abecasis <joao@abecasis.name> | 2009-04-15 12:37:35 (GMT) |
---|---|---|
committer | João Abecasis <joao@abecasis.name> | 2009-05-22 12:33:46 (GMT) |
commit | 84cbe8ffa4a7189c46efca9bb6387e80ab889c5c (patch) | |
tree | ab675f4fc19ee538426d116e274943fcbf1587a8 /src/corelib | |
parent | 27369e563263e82a9c5747da54370eb0a225b3d5 (diff) | |
download | Qt-84cbe8ffa4a7189c46efca9bb6387e80ab889c5c.zip Qt-84cbe8ffa4a7189c46efca9bb6387e80ab889c5c.tar.gz Qt-84cbe8ffa4a7189c46efca9bb6387e80ab889c5c.tar.bz2 |
QTemporaryFile: there's no need to keep another pointer to the engine here
Lifetime of the engine is already handled by the native engine.
Reviewed-by: Thiago
Diffstat (limited to 'src/corelib')
-rw-r--r-- | src/corelib/io/qtemporaryfile.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/corelib/io/qtemporaryfile.cpp b/src/corelib/io/qtemporaryfile.cpp index 5e08ed8..ec539d4 100644 --- a/src/corelib/io/qtemporaryfile.cpp +++ b/src/corelib/io/qtemporaryfile.cpp @@ -409,17 +409,14 @@ protected: bool autoRemove; QString templateName; - mutable QTemporaryFileEngine *fileEngine; }; -QTemporaryFilePrivate::QTemporaryFilePrivate() : autoRemove(true), fileEngine(0) +QTemporaryFilePrivate::QTemporaryFilePrivate() : autoRemove(true) { } QTemporaryFilePrivate::~QTemporaryFilePrivate() { - delete fileEngine; - fileEngine = 0; } //************* QTemporaryFile |