summaryrefslogtreecommitdiffstats
path: root/src/mangen.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2001-04-08 19:19:32 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2001-04-08 19:19:32 (GMT)
commitc08484819f37862c753a193092326cb16e1a89fa (patch)
tree120d3069adfaa3da505045185569c8c67554d055 /src/mangen.cpp
parent790edce05edc348b237258995816da1708d67a73 (diff)
downloadDoxygen-c08484819f37862c753a193092326cb16e1a89fa.zip
Doxygen-c08484819f37862c753a193092326cb16e1a89fa.tar.gz
Doxygen-c08484819f37862c753a193092326cb16e1a89fa.tar.bz2
Doxygen-1.2.6-20010408
Diffstat (limited to 'src/mangen.cpp')
-rw-r--r--src/mangen.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/mangen.cpp b/src/mangen.cpp
index 4a80d6a..68a59ed 100644
--- a/src/mangen.cpp
+++ b/src/mangen.cpp
@@ -27,7 +27,7 @@
ManGenerator::ManGenerator() : OutputGenerator()
{
- dir=Config::instance()->getString("MAN_OUTPUT")+"/man3";
+ dir=Config_getString("MAN_OUTPUT")+"/man3";
firstCol=TRUE;
paragraph=FALSE;
col=0;
@@ -56,16 +56,16 @@ void ManGenerator::append(const OutputGenerator *g)
void ManGenerator::init()
{
- QDir d(Config::instance()->getString("MAN_OUTPUT"));
- if (!d.exists() && !d.mkdir(Config::instance()->getString("MAN_OUTPUT")))
+ QDir d(Config_getString("MAN_OUTPUT"));
+ if (!d.exists() && !d.mkdir(Config_getString("MAN_OUTPUT")))
{
- err("Could not create output directory %s\n",Config::instance()->getString("MAN_OUTPUT").data());
+ err("Could not create output directory %s\n",Config_getString("MAN_OUTPUT").data());
exit(1);
}
- d.setPath(Config::instance()->getString("MAN_OUTPUT")+"/man3");
- if (!d.exists() && !d.mkdir(Config::instance()->getString("MAN_OUTPUT")+"/man3"))
+ d.setPath(Config_getString("MAN_OUTPUT")+"/man3");
+ if (!d.exists() && !d.mkdir(Config_getString("MAN_OUTPUT")+"/man3"))
{
- err("Could not create output directory %s/man3\n",Config::instance()->getString("MAN_OUTPUT").data());
+ err("Could not create output directory %s/man3\n",Config_getString("MAN_OUTPUT").data());
exit(1);
}
}
@@ -105,9 +105,9 @@ void ManGenerator::startFile(const char *name,const char *,bool)
{
fileName=fileName.left(i);
}
- if (convertToQCString(fileName.right(2))!=Config::instance()->getString("MAN_EXTENSION"))
+ if (convertToQCString(fileName.right(2))!=Config_getString("MAN_EXTENSION"))
{
- fileName+=Config::instance()->getString("MAN_EXTENSION");
+ fileName+=Config_getString("MAN_EXTENSION");
}
startPlainFile(fileName);
firstCol=TRUE;
@@ -121,10 +121,10 @@ void ManGenerator::endFile()
void ManGenerator::endTitleHead(const char *,const char *name)
{
t << ".TH \"" << name << "\" 3 \"" << dateToString(FALSE) << "\" \"";
- if (Config::instance()->getString("PROJECT_NAME").isEmpty())
+ if (Config_getString("PROJECT_NAME").isEmpty())
t << "Doxygen";
else
- t << Config::instance()->getString("PROJECT_NAME");
+ t << Config_getString("PROJECT_NAME");
t << "\" \\\" -*- nroff -*-" << endl;
t << ".ad l" << endl;
t << ".nh" << endl;
@@ -248,7 +248,7 @@ void ManGenerator::codify(const char *str)
switch(c)
{
case '\t': spacesToNextTabStop =
- Config::instance()->getInt("TAB_SIZE") - (col%Config::instance()->getInt("TAB_SIZE"));
+ Config_getInt("TAB_SIZE") - (col%Config_getInt("TAB_SIZE"));
t << spaces.left(spacesToNextTabStop);
col+=spacesToNextTabStop;
break;