diff options
Diffstat (limited to 'helpcompiler/source/HelpLinker.cxx')
-rw-r--r-- | helpcompiler/source/HelpLinker.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/helpcompiler/source/HelpLinker.cxx b/helpcompiler/source/HelpLinker.cxx index 3c992bed0c9b..1af6a58467a5 100644 --- a/helpcompiler/source/HelpLinker.cxx +++ b/helpcompiler/source/HelpLinker.cxx @@ -266,9 +266,8 @@ void HelpLinker::addBookmark( FILE* pFile_DBHelp, std::string thishid, void HelpLinker::initIndexerPreProcessor() { - delete m_pIndexerPreProcessor; - m_pIndexerPreProcessor = new IndexerPreProcessor( indexDirParentName, - idxCaptionStylesheet, idxContentStylesheet ); + m_pIndexerPreProcessor.reset( new IndexerPreProcessor( indexDirParentName, + idxCaptionStylesheet, idxContentStylesheet ) ); } /** |