Kaydet (Commit) 275ccca3 authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:unusedfields helpcompiler

Change-Id: I8a4feaea642cf781fde54e4afc5cd98e326f8db3
üst fafac0d2
...@@ -30,7 +30,6 @@ class L10N_DLLPUBLIC BasicCodeTagger ...@@ -30,7 +30,6 @@ class L10N_DLLPUBLIC BasicCodeTagger
xmlDocPtr m_pDocument; xmlDocPtr m_pDocument;
std::list<xmlNodePtr> m_BasicCodeContainerTags; std::list<xmlNodePtr> m_BasicCodeContainerTags;
LibXmlTreeWalker *m_pXmlTreeWalker; LibXmlTreeWalker *m_pXmlTreeWalker;
std::list<std::string> m_BasicCodeStringList;
SyntaxHighlighter m_Highlighter; SyntaxHighlighter m_Highlighter;
bool m_bTaggingCompleted; bool m_bTaggingCompleted;
void tagParagraph( xmlNodePtr paragraph ); void tagParagraph( xmlNodePtr paragraph );
......
...@@ -30,7 +30,6 @@ ...@@ -30,7 +30,6 @@
class L10N_DLLPUBLIC IndexerPreProcessor class L10N_DLLPUBLIC IndexerPreProcessor
{ {
private: private:
std::string m_aModuleName;
fs::path m_fsIndexBaseDir; fs::path m_fsIndexBaseDir;
fs::path m_fsCaptionFilesDirName; fs::path m_fsCaptionFilesDirName;
fs::path m_fsContentFilesDirName; fs::path m_fsContentFilesDirName;
...@@ -39,7 +38,7 @@ private: ...@@ -39,7 +38,7 @@ private:
xsltStylesheetPtr m_xsltStylesheetPtrContent; xsltStylesheetPtr m_xsltStylesheetPtrContent;
public: public:
IndexerPreProcessor( const std::string& aModuleName, const fs::path& fsIndexBaseDir, IndexerPreProcessor( const fs::path& fsIndexBaseDir,
const fs::path& idxCaptionStylesheet, const fs::path& idxContentStylesheet ); const fs::path& idxCaptionStylesheet, const fs::path& idxContentStylesheet );
~IndexerPreProcessor(); ~IndexerPreProcessor();
......
...@@ -263,7 +263,6 @@ public: ...@@ -263,7 +263,6 @@ public:
} }
void traverse( xmlNodePtr parentNode ); void traverse( xmlNodePtr parentNode );
private: private:
std::string module;
std::string dump(xmlNodePtr node); std::string dump(xmlNodePtr node);
}; };
......
...@@ -39,10 +39,9 @@ ...@@ -39,10 +39,9 @@
#include <memory> #include <memory>
IndexerPreProcessor::IndexerPreProcessor IndexerPreProcessor::IndexerPreProcessor
( const std::string& aModuleName, const fs::path& fsIndexBaseDir, ( const fs::path& fsIndexBaseDir,
const fs::path& idxCaptionStylesheet, const fs::path& idxContentStylesheet ) const fs::path& idxCaptionStylesheet, const fs::path& idxContentStylesheet )
: m_aModuleName( aModuleName ) : m_fsIndexBaseDir( fsIndexBaseDir )
, m_fsIndexBaseDir( fsIndexBaseDir )
{ {
m_fsCaptionFilesDirName = fsIndexBaseDir / "caption"; m_fsCaptionFilesDirName = fsIndexBaseDir / "caption";
fs::create_directory( m_fsCaptionFilesDirName ); fs::create_directory( m_fsCaptionFilesDirName );
...@@ -270,9 +269,7 @@ void HelpLinker::addBookmark( FILE* pFile_DBHelp, std::string thishid, ...@@ -270,9 +269,7 @@ void HelpLinker::addBookmark( FILE* pFile_DBHelp, std::string thishid,
void HelpLinker::initIndexerPreProcessor() void HelpLinker::initIndexerPreProcessor()
{ {
delete m_pIndexerPreProcessor; delete m_pIndexerPreProcessor;
std::string mod = module; m_pIndexerPreProcessor = new IndexerPreProcessor( indexDirParentName,
std::transform (mod.begin(), mod.end(), mod.begin(), tocharlower);
m_pIndexerPreProcessor = new IndexerPreProcessor( mod, indexDirParentName,
idxCaptionStylesheet, idxContentStylesheet ); idxCaptionStylesheet, idxContentStylesheet );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment