summaryrefslogtreecommitdiff
path: root/helpcompiler
diff options
context:
space:
mode:
Diffstat (limited to 'helpcompiler')
-rw-r--r--helpcompiler/source/HelpCompiler.cxx4
-rw-r--r--helpcompiler/source/HelpLinker.cxx8
2 files changed, 12 insertions, 0 deletions
diff --git a/helpcompiler/source/HelpCompiler.cxx b/helpcompiler/source/HelpCompiler.cxx
index 70159a2c65fd..8be6842fd3a1 100644
--- a/helpcompiler/source/HelpCompiler.cxx
+++ b/helpcompiler/source/HelpCompiler.cxx
@@ -240,6 +240,8 @@ xmlNodePtr HelpCompiler::clone(xmlNodePtr node, const std::string& appl)
return root;
}
+namespace {
+
class myparser
{
public:
@@ -265,6 +267,8 @@ private:
std::string dump(xmlNodePtr node);
};
+}
+
std::string myparser::dump(xmlNodePtr node)
{
std::string app;
diff --git a/helpcompiler/source/HelpLinker.cxx b/helpcompiler/source/HelpLinker.cxx
index 44444902eb71..cad47dad0b08 100644
--- a/helpcompiler/source/HelpLinker.cxx
+++ b/helpcompiler/source/HelpLinker.cxx
@@ -122,6 +122,8 @@ void IndexerPreProcessor::processDocument
}
}
+namespace {
+
struct Data
{
std::vector<std::string> _idList;
@@ -140,6 +142,8 @@ struct Data
}
};
+}
+
static void writeKeyValue_DBHelp( FILE* pFile, const std::string& aKeyStr, const std::string& aValueStr )
{
if( pFile == nullptr )
@@ -164,6 +168,8 @@ static void writeKeyValue_DBHelp( FILE* pFile, const std::string& aKeyStr, const
fprintf(stderr, "fwrite to db failed\n");
}
+namespace {
+
class HelpKeyword
{
private:
@@ -190,6 +196,8 @@ public:
}
};
+}
+
namespace URLEncoder
{
static std::string encode(const std::string &rIn)