From ebe7e15ca2f72ae797835a051ae3e1236e14c68b Mon Sep 17 00:00:00 2001 From: kawi Date: Tue, 27 Oct 2015 07:32:35 +0100 Subject: [PATCH] Missing QByteArray::constData errors in varargs --- .gitignore | 1 + base/ReFile.cpp | 2 +- base/ReFileUtils.cpp | 2 +- os/ReCryptFileSystem.cpp | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index a0a2e60..5c1c43b 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ doc/ *.pro.user.* rpldoc.zip build/ +appl/build-reidos-Desktop-Debug/ diff --git a/base/ReFile.cpp b/base/ReFile.cpp index dc04fed..0301d03 100644 --- a/base/ReFile.cpp +++ b/base/ReFile.cpp @@ -138,7 +138,7 @@ bool ReFile::deleteTree(const QString& path, bool withBase, ReLogger* logger) { if (withBase && (rmdir(path.toUtf8())) != 0) { rc = false; logger->logv(LOG_ERROR, LOC_DELETE_TREE_3, - "cannot delete directory (%d): %s", errno, path.toUtf8()); + "cannot delete directory (%d): %s", errno, path.toUtf8().constData()); } return rc; } diff --git a/base/ReFileUtils.cpp b/base/ReFileUtils.cpp index 73d776f..d5e0476 100644 --- a/base/ReFileUtils.cpp +++ b/base/ReFileUtils.cpp @@ -121,7 +121,7 @@ bool ReFileUtils::deleteTree(const QString& path, bool withBase, if (withBase && (rmdir(path.toUtf8())) != 0) { rc = false; logger->logv(LOG_ERROR, LOC_DELETE_TREE_3, - "cannot delete directory (%d): %s", errno, path.toUtf8()); + "cannot delete directory (%d): %s", errno, path.toUtf8().constData()); } return rc; } diff --git a/os/ReCryptFileSystem.cpp b/os/ReCryptFileSystem.cpp index b24a8eb..42d00f5 100644 --- a/os/ReCryptFileSystem.cpp +++ b/os/ReCryptFileSystem.cpp @@ -380,7 +380,7 @@ bool ReCryptDirectory::writeMetaFile() FILE* fp = fopen(fnMetaFile.toUtf8().constData(), "rb"); if (fp == NULL){ m_logger->logv(LOG_ERROR, LOC_WRITE_META_1, "cannot write (%d): %s", - errno, fnMetaFile); + errno, fnMetaFile.constData()); } else { m_fileBuffer.append(header); int ixList = 0; -- 2.39.5