Commit d1568efd authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

Don't use QDir::separator

If we're building paths for Qt, always use /
parent 493ba07e
Pipeline #16402 passed with stage
in 11 minutes and 13 seconds
......@@ -181,7 +181,7 @@ void EmbeddedFilesDialog::viewFile( Okular::EmbeddedFile* ef )
// using QTemporaryFile's XXXXXX placeholder
QTemporaryFile *tmpFile = new QTemporaryFile(
QDir::tempPath()
+ QDir::separator()
+ "/"
+ fileInfo.baseName()
+ ".XXXXXX"
+ (fileInfo.completeSuffix().isEmpty() ? QLatin1String("") : QString("." + fileInfo.completeSuffix()))
......
......@@ -121,7 +121,7 @@ LatexRenderer::Error LatexRenderer::handleLatex( QString& fileName, const QStrin
tempFile->open();
QString tempFileName = tempFile->fileName();
QFileInfo *tempFileInfo = new QFileInfo(tempFileName);
QString tempFileNameNS = tempFileInfo->absolutePath() + QDir::separator() + tempFileInfo->baseName();
QString tempFileNameNS = tempFileInfo->absolutePath() + "/" + tempFileInfo->baseName();
QString tempFilePath = tempFileInfo->absolutePath();
delete tempFileInfo;
QTextStream tempStream(tempFile);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment