Use string instead of char.

This commit is contained in:
Roman Telezhynskyi 2024-03-26 10:24:27 +02:00
parent ed5e5ef5fd
commit b3b6843b2e

View file

@ -110,9 +110,9 @@ void VAbstractConverter::ReserveFile() const
QString error; QString error;
QFileInfo const info(m_convertedFileName); QFileInfo const info(m_convertedFileName);
#if defined(Q_OS_UNIX) || defined(Q_OS_MACOS) #if defined(Q_OS_UNIX) || defined(Q_OS_MACOS)
const QChar hidden = QChar('.'); const QString hidden = QChar('.');
#else #else
const QChar hidden; const QString hidden;
#endif #endif
const QString reserveFileName = u"%1/%2%3(v%4).%5.bak"_s.arg( const QString reserveFileName = u"%1/%2%3(v%4).%5.bak"_s.arg(
info.absoluteDir().absolutePath(), hidden, info.baseName(), GetFormatVersionStr(), info.completeSuffix()); info.absoluteDir().absolutePath(), hidden, info.baseName(), GetFormatVersionStr(), info.completeSuffix());