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.

Change-Id: Ib0236d7e7dda84834ba35907d75c52cf77fb3843
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
(cherry picked from commit 171ac8aa4ef107a7c06163aaeba9a37abffccb09)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Mårten Nordheim 2024-04-15 17:41:55 +02:00 committed by Qt Cherry-pick Bot
parent 4931ee6e00
commit d3ed6f02bb
2 changed files with 2 additions and 2 deletions

View File

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

View File

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