Permalink
Browse files

Minor fixes to the template context

  • Loading branch information...
Dimitri van Heesch
Dimitri van Heesch committed May 11, 2014
1 parent 47bc520 commit 963e0adfd76e6a59ace5e7318f948632322b1e51
Showing with 4 additions and 5 deletions.
  1. +4 −4 src/context.cpp
  2. +0 −1 src/template.cpp
View
@@ -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
{
View
@@ -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");

0 comments on commit 963e0ad

Please sign in to comment.