summaryrefslogtreecommitdiffstats
path: root/src/filedef.cpp
diff options
context:
space:
mode:
authorTobias Off <tobias.off@redheads.de>2019-11-19 12:01:27 (GMT)
committerTobias Off <tobias.off@redheads.de>2019-11-28 09:43:57 (GMT)
commit6382986b77d302be187d95aaa850eff132ec1d7d (patch)
tree37babfa1b0b12db5ccdb7fa4f386690e6e949a66 /src/filedef.cpp
parent2972f6ddc491f615f814b1277ec715b6f707c419 (diff)
downloadDoxygen-6382986b77d302be187d95aaa850eff132ec1d7d.zip
Doxygen-6382986b77d302be187d95aaa850eff132ec1d7d.tar.gz
Doxygen-6382986b77d302be187d95aaa850eff132ec1d7d.tar.bz2
Refactoring of portable.h and portable.cpp functions to be contained in a namespace
Fixing some memory issues caused by not correctly freed pointers
Diffstat (limited to 'src/filedef.cpp')
-rw-r--r--src/filedef.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/filedef.cpp b/src/filedef.cpp
index 346fb62..43a2c84 100644
--- a/src/filedef.cpp
+++ b/src/filedef.cpp
@@ -2015,7 +2015,7 @@ void FileDefImpl::acquireFileVersion()
msg("Version of %s : ",m_filePath.data());
QCString cmd = vercmd+" \""+m_filePath+"\"";
Debug::print(Debug::ExtCmd,0,"Executing popen(`%s`)\n",qPrint(cmd));
- FILE *f=portable_popen(cmd,"r");
+ FILE *f=Portables::popen(cmd,"r");
if (!f)
{
err("could not execute %s\n",vercmd.data());
@@ -2024,7 +2024,7 @@ void FileDefImpl::acquireFileVersion()
const int bufSize=1024;
char buf[bufSize];
int numRead = (int)fread(buf,1,bufSize-1,f);
- portable_pclose(f);
+ Portables::pclose(f);
if (numRead>0 && numRead<bufSize)
{
buf[numRead]='\0';