summaryrefslogtreecommitdiffstats
path: root/qt-ui/printlayout.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2014-07-17 20:27:18 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-18 10:14:27 -0700
commit426b640d2f65dfe9345481f23d0bd49ce616e460 (patch)
tree3555912e814220af5167d7de33832fe66f33eba9 /qt-ui/printlayout.cpp
parentd3c0a723b82337fcf2bd0e129d3a6855c90e4825 (diff)
downloadsubsurface-426b640d2f65dfe9345481f23d0bd49ce616e460.tar.gz
No need to delete a QPointer
QPointer is a smart pointer, it will delete itself when the refcount == 0. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/printlayout.cpp')
-rw-r--r--qt-ui/printlayout.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/qt-ui/printlayout.cpp b/qt-ui/printlayout.cpp
index 6640d43f4..51b44c0ac 100644
--- a/qt-ui/printlayout.cpp
+++ b/qt-ui/printlayout.cpp
@@ -213,7 +213,6 @@ void PrintLayout::printProfileDives(int divesPerRow, int divesPerColumn)
}
// cleanup
painter.end();
- delete table;
profile->setFrameStyle(profileFrameStyle);
profile->setPrintMode(false);
profile->resize(originalSize);