diff options
author | Michele Calgaro <[email protected]> | 2024-01-18 23:26:41 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2024-01-18 23:33:46 +0900 |
commit | 5809bef5fab96182a781fcad03a0ece1effffd72 (patch) | |
tree | dbde5239e96a94fe88630dc835ec9bef3c3b3564 /src/bookwidget.cpp | |
parent | e47baa8f120042143820c6e81fb7eeffa03d7974 (diff) | |
download | kbookreader-5809bef5fab96182a781fcad03a0ece1effffd72.tar.gz kbookreader-5809bef5fab96182a781fcad03a0ece1effffd72.zip |
Replace auto_ptr
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'src/bookwidget.cpp')
-rw-r--r-- | src/bookwidget.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/bookwidget.cpp b/src/bookwidget.cpp index e62652e..c5b462b 100644 --- a/src/bookwidget.cpp +++ b/src/bookwidget.cpp @@ -366,9 +366,9 @@ void BookWidget::loadLine() //setup and show firstPage(); //clean up - m_progressDlg.reset(0); - m_stream.reset(0); - m_textLines.reset(0); + m_progressDlg.reset(); + m_stream.reset(); + m_textLines.reset(); m_file.close(); m_modified = true; emit loadingFinished(); @@ -379,14 +379,14 @@ void BookWidget::cancelLoading() m_timer.stop(); if (parentWidget()) parentWidget()->setCaption(""); - //clean up - m_progressDlg->hide(); - m_stream.reset(0); - m_textLines.reset(0); - m_file.close(); - //setup and show - m_renderer->clear(); - firstPage(); + //clean up + m_progressDlg->hide(); + m_stream.reset(); + m_textLines.reset(); + m_file.close(); + //setup and show + m_renderer->clear(); + firstPage(); } void BookWidget::setParaOffset(int offset) |