summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/outputgen.h2
-rw-r--r--src/outputlist.cpp28
-rw-r--r--src/outputlist.h4
3 files changed, 12 insertions, 22 deletions
diff --git a/src/outputgen.h b/src/outputgen.h
index a99cff3..be6b5e1 100644
--- a/src/outputgen.h
+++ b/src/outputgen.h
@@ -150,7 +150,7 @@ class BaseOutputDocInterface : public CodeOutputInterface
Examples
};
- virtual bool parseText(const QCString &s) { return s.isEmpty(); }
+ virtual void parseText(const QCString &s) {}
/*! Start of a bullet list: e.g. \c \<ul\> in html. startItemListItem() is
* Used for the bullet items.
diff --git a/src/outputlist.cpp b/src/outputlist.cpp
index 6e6d9ef..fbe210a 100644
--- a/src/outputlist.cpp
+++ b/src/outputlist.cpp
@@ -128,14 +128,14 @@ void OutputList::popGeneratorState()
}
}
-bool OutputList::generateDoc(const char *fileName,int startLine,
+void OutputList::generateDoc(const char *fileName,int startLine,
Definition *ctx,MemberDef * md,
const QCString &docStr,bool indexWords,
bool isExample,const char *exampleName,
bool singleLine,bool linkFromIndex)
{
int count=0;
- if (docStr.isEmpty()) return TRUE;
+ if (docStr.isEmpty()) return;
QListIterator<OutputGenerator> it(m_outputs);
OutputGenerator *og;
@@ -152,15 +152,8 @@ bool OutputList::generateDoc(const char *fileName,int startLine,
root = validatingParseDoc(fileName,startLine,
ctx,md,docStr,indexWords,isExample,exampleName,
singleLine,linkFromIndex);
- if (count==0) return TRUE; // no output formats enabled.
-
- writeDoc(root,ctx,md);
-
- bool isEmpty = root->isEmpty();
-
+ if (count>0) writeDoc(root,ctx,md);
delete root;
-
- return isEmpty;
}
void OutputList::writeDoc(DocRoot *root,Definition *ctx,MemberDef *md)
@@ -176,7 +169,7 @@ void OutputList::writeDoc(DocRoot *root,Definition *ctx,MemberDef *md)
VhdlDocGen::setFlowMember(0);
}
-bool OutputList::parseText(const QCString &textStr)
+void OutputList::parseText(const QCString &textStr)
{
int count=0;
QListIterator<OutputGenerator> it(m_outputs);
@@ -192,18 +185,15 @@ bool OutputList::parseText(const QCString &textStr)
// - no formats there should be warnings as well
DocText *root = validatingParseText(textStr);
- if (count==0) return TRUE; // no output formats enabled.
-
- for (it.toFirst();(og=it.current());++it)
+ if (count>0)
{
- if (og->isEnabled()) og->writeDoc(root,0,0);
+ for (it.toFirst();(og=it.current());++it)
+ {
+ if (og->isEnabled()) og->writeDoc(root,0,0);
+ }
}
- bool isEmpty = root->isEmpty();
-
delete root;
-
- return isEmpty;
}
diff --git a/src/outputlist.h b/src/outputlist.h
index 5fd8017..bbab809 100644
--- a/src/outputlist.h
+++ b/src/outputlist.h
@@ -74,12 +74,12 @@ class OutputList : public OutputDocInterface
// OutputDocInterface implementation
//////////////////////////////////////////////////
- bool generateDoc(const char *fileName,int startLine,
+ void generateDoc(const char *fileName,int startLine,
Definition *ctx,MemberDef *md,const QCString &docStr,
bool indexWords,bool isExample,const char *exampleName=0,
bool singleLine=FALSE,bool linkFromIndex=FALSE);
void writeDoc(DocRoot *root,Definition *ctx,MemberDef *md);
- bool parseText(const QCString &textStr);
+ void parseText(const QCString &textStr);
void startIndexSection(IndexSections is)