Commit 963e0adf authored by Dimitri van Heesch's avatar Dimitri van Heesch

Minor fixes to the template context

parent 47bc520a
......@@ -4856,7 +4856,7 @@ class NamespaceTreeContext::Private : public PropertyMapper
public:
TemplateVariant tree() const
{
return TemplateVariant(&m_namespaceTree);
return m_namespaceTree.get();
}
TemplateVariant fileName() const
{
......@@ -5110,7 +5110,7 @@ class FileTreeContext::Private : public PropertyMapper
}
TemplateVariant tree() const
{
return TemplateVariant(&m_dirFileTree);
return m_dirFileTree.get();
}
TemplateVariant fileName() const
{
......@@ -5570,7 +5570,7 @@ class ModuleTreeContext::Private : public PropertyMapper
public:
TemplateVariant tree() const
{
return TemplateVariant(&m_moduleList);
return m_moduleList.get();
}
TemplateVariant fileName() const
{
......@@ -5706,7 +5706,7 @@ class ExampleListContext::Private : public PropertyMapper
public:
TemplateVariant items() const
{
return TemplateVariant(&m_pageList);
return m_pageList.get();
}
TemplateVariant fileName() const
{
......
......@@ -3214,7 +3214,6 @@ class TemplateNodeCreate : public TemplateNodeCreator<TemplateNodeCreate>
{
QCString templateFile = m_templateExpr->resolve(c).toString();
QCString outputFile = m_fileExpr->resolve(c).toString();
printf("TemplateNodeCreate file='%s' template='%s'\n",outputFile.data(),templateFile.data());
if (templateFile.isEmpty())
{
ci->warn(m_templateName,m_line,"empty template name parameter for create command\n");
......
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