summaryrefslogtreecommitdiffstats
path: root/src/bookwidget.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2024-01-18 23:26:41 +0900
committerMichele Calgaro <[email protected]>2024-01-18 23:33:46 +0900
commit5809bef5fab96182a781fcad03a0ece1effffd72 (patch)
treedbde5239e96a94fe88630dc835ec9bef3c3b3564 /src/bookwidget.cpp
parente47baa8f120042143820c6e81fb7eeffa03d7974 (diff)
downloadkbookreader-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.cpp22
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)