From 710779b7b821632b882f0081cae7d6a197f7e2d2 Mon Sep 17 00:00:00 2001
From: Luigi Toscano
Date: Sun, 11 May 2014 13:12:25 +0200
Subject: [PATCH] getenv -> qgetenv
---
generators/dvi/dviFile.cpp | 2 +-
generators/dvi/fontpool.cpp | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/generators/dvi/dviFile.cpp b/generators/dvi/dviFile.cpp
index 188ee80d5..d90ff1c6b 100644
--- a/generators/dvi/dviFile.cpp
+++ b/generators/dvi/dviFile.cpp
@@ -396,7 +396,7 @@ QString dvifile::convertPDFtoPS(const QString &PDFFilename, QString *converrorms
"contained in distributions of the ghostscript PostScript interpreter system. If "
"ghostscript is not installed on your system, you could install it now. "
"If you are sure that ghostscript is installed, try to use pdf2ps "
- "from the command line to check if it really works.
PATH: %2
", PDFFilename, getenv("PATH"));
+ "from the command line to check if it really works.PATH: %2
", PDFFilename, QString(qgetenv("PATH")));
have_complainedAboutMissingPDF2PS = true;
}
return QString();
diff --git a/generators/dvi/fontpool.cpp b/generators/dvi/fontpool.cpp
index 0db3cbe53..6cca6ef4e 100644
--- a/generators/dvi/fontpool.cpp
+++ b/generators/dvi/fontpool.cpp
@@ -210,7 +210,7 @@ void fontPool::locateFonts()
"which are necessary to display the current DVI file. "
"Your document might be unreadable."
"PATH: %1
"
- "%2
", getenv("PATH"),
+ "%2
", QString(qgetenv("PATH")),
kpsewhichOutput.replace(QLatin1String("\n"), QLatin1String("
"))), -1);
}
}
@@ -282,7 +282,7 @@ void fontPool::locateFonts(bool makePK, bool locateTFMonly, bool *virtualFontsFo
"Possible reason: the kpsewhich program is perhaps not installed on your system, "
"or it cannot be found in the current search path."
"PATH: %1
"
- "%2
", getenv("PATH"),
+ "%2
", QString(qgetenv("PATH")),
kpsewhichOutput.replace(QLatin1String("\n"), QLatin1String("
"))), -1);
// This makes sure the we don't try to run kpsewhich again