Fix signed-unsigned comparison warning

This commit is contained in:
BlackMark 2020-07-17 14:51:28 +02:00
parent 5b6dd9e62c
commit 65b4fbc484

View File

@ -17,7 +17,7 @@ static inline void rotateLog(const std::filesystem::path& logFileName, int numRo
const auto generateRotateNames = [&]() { const auto generateRotateNames = [&]() {
std::vector<QString> rotateFileNames = {QString().fromStdString(logFileName.string())}; std::vector<QString> rotateFileNames = {QString().fromStdString(logFileName.string())};
for(size_t i = 1; i < numRotatingLogs; ++i) { for(int i = 1; i < numRotatingLogs; ++i) {
auto rotateName = logFileName.stem(); auto rotateName = logFileName.stem();
rotateName += std::string(".") + std::to_string(i); rotateName += std::string(".") + std::to_string(i);
rotateName += logFileName.extension(); rotateName += logFileName.extension();