QSaveFile[win]: remove const from nativeRenameOverwrite

I accidentally copied const from another signature.
It's not changing any members so it's technically fine,
but it leaves a bad feeling and we will change members soon.

Pick-to: 6.7
Change-Id: Ib0236d7e7dda84834ba35907d75c52cf77fb3843
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
bb10
Mårten Nordheim 2024-04-15 17:41:55 +02:00
parent 36a1fb7256
commit 171ac8aa4e
2 changed files with 2 additions and 2 deletions

View File

@ -152,7 +152,7 @@ public:
bool isSequentialFdFh() const;
#endif
#ifdef Q_OS_WIN
bool nativeRenameOverwrite(const QString &newName) const;
bool nativeRenameOverwrite(const QString &newName);
#endif
uchar *map(qint64 offset, qint64 size, QFile::MemoryMapFlags flags);

View File

@ -396,7 +396,7 @@ bool QFSFileEnginePrivate::nativeIsSequential() const
|| (fileType == FILE_TYPE_PIPE);
}
bool QFSFileEnginePrivate::nativeRenameOverwrite(const QString &newName) const
bool QFSFileEnginePrivate::nativeRenameOverwrite(const QString &newName)
{
if (fileHandle == INVALID_HANDLE_VALUE)
return false;