summaryrefslogtreecommitdiffstats
path: root/src/dotrunner.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2020-03-29 10:02:44 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2020-03-29 10:02:44 (GMT)
commit26f3d147cf3acf62007cb2223c46d6dd033c6fd5 (patch)
treedb6cd68ffb1e3e1f21dab3578aeddad4154f069c /src/dotrunner.cpp
parentb0554573d373519dbf8bc7109e0e143952ec6302 (diff)
downloadDoxygen-26f3d147cf3acf62007cb2223c46d6dd033c6fd5.zip
Doxygen-26f3d147cf3acf62007cb2223c46d6dd033c6fd5.tar.gz
Doxygen-26f3d147cf3acf62007cb2223c46d6dd033c6fd5.tar.bz2
Revert addition of std::string conversion operator for QCString
Diffstat (limited to 'src/dotrunner.cpp')
-rw-r--r--src/dotrunner.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/dotrunner.cpp b/src/dotrunner.cpp
index cb6bd73..c9ff284 100644
--- a/src/dotrunner.cpp
+++ b/src/dotrunner.cpp
@@ -73,7 +73,7 @@ static bool resetPDFSize(const int width,const int height, const char *base)
}
QFile fi(tmpName);
QFile fo(patchFile);
- if (!fi.open(IO_ReadOnly))
+ if (!fi.open(IO_ReadOnly))
{
err("problem opening file %s for patching!\n",tmpName.data());
QDir::current().rename(tmpName,patchFile);
@@ -117,7 +117,7 @@ bool DotRunner::readBoundingBox(const char *fileName,int *width,int *height,bool
const char *bb = isEps ? "%%PageBoundingBox:" : "/MediaBox [";
int bblen = (int)strlen(bb);
FILE *f = Portable::fopen(fileName,"rb");
- if (!f)
+ if (!f)
{
//printf("readBoundingBox: could not open %s\n",fileName);
return FALSE;
@@ -158,7 +158,7 @@ DotRunner::DotRunner(const std::string& absDotName, const std::string& md5Hash)
void DotRunner::addJob(const char *format, const char *output)
{
-
+
for (auto& s: m_jobs)
{
if (s.format != format) continue;
@@ -226,20 +226,20 @@ bool DotRunner::run()
}
// remove .dot files
- if (m_cleanUp)
+ if (m_cleanUp)
{
//printf("removing dot file %s\n",m_file.data());
Portable::unlink(m_file.data());
}
// create checksum file
- if (!m_md5Hash.empty())
+ if (!m_md5Hash.empty())
{
QCString md5Name = getBaseNameOfOutput(m_file.data()) + ".md5";
FILE *f = Portable::fopen(md5Name,"w");
if (f)
{
- fwrite(m_md5Hash.data(),1,32,f);
+ fwrite(m_md5Hash.data(),1,32,f);
fclose(f);
}
}