diff options
| author | Ievgenii Meshcheriakov <ievgenii.meshcheriakov@qt.io> | 2021-11-01 13:18:55 +0100 |
|---|---|---|
| committer | Ievgenii Meshcheriakov <ievgenii.meshcheriakov@qt.io> | 2021-11-03 13:42:35 +0100 |
| commit | 57cab7b9a8cb453625ffa01589a9e0d3cd8f07d3 (patch) | |
| tree | a0141323f9cec33c33e0504d967715ff9cbc46ef /src/corelib/io/qabstractfileengine.cpp | |
| parent | 29f86b5698fa22d5675777ae91e36be7dc530844 (diff) | |
QAbstractFileEngine: Remove useless method overrides
Remove useless overrides of QAbstractFileEngine methods from the derived
classes. Also remove "This virtual function must be reimplemented by
all subclasses" passages from the QAbstractFileEngine's documentation.
There are pure virtual methods for such use cases. QAbstractFileEngine
already contains useful defaults for classes not supporting all the
functionality.
Change-Id: Ia25965854f3809b15d7502da3749cc2f3414bbc3
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/corelib/io/qabstractfileengine.cpp')
| -rw-r--r-- | src/corelib/io/qabstractfileengine.cpp | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/src/corelib/io/qabstractfileengine.cpp b/src/corelib/io/qabstractfileengine.cpp index 6b02ad6fd51..4cf3906a16b 100644 --- a/src/corelib/io/qabstractfileengine.cpp +++ b/src/corelib/io/qabstractfileengine.cpp @@ -475,8 +475,6 @@ bool QAbstractFileEngine::isSequential() const Requests that the file is deleted from the file system. If the operation succeeds return true; otherwise return false. - This virtual function must be reimplemented by all subclasses. - \sa setFileName(), rmdir() */ bool QAbstractFileEngine::remove() @@ -499,8 +497,6 @@ bool QAbstractFileEngine::copy(const QString &newName) system. If the operation succeeds return true; otherwise return false. - This virtual function must be reimplemented by all subclasses. - \sa setFileName() */ bool QAbstractFileEngine::rename(const QString &newName) @@ -517,8 +513,6 @@ bool QAbstractFileEngine::rename(const QString &newName) If the operation succeeds, returns \c true; otherwise returns false. - This virtual function must be reimplemented by all subclasses. - \sa setFileName() */ bool QAbstractFileEngine::renameOverwrite(const QString &newName) @@ -547,8 +541,6 @@ bool QAbstractFileEngine::link(const QString &newName) succeed. If the operation succeeds return true; otherwise return false. - This virtual function must be reimplemented by all subclasses. - \sa setFileName(), rmdir(), isRelativePath() */ bool QAbstractFileEngine::mkdir(const QString &dirName, bool createParentDirectories) const @@ -567,8 +559,6 @@ bool QAbstractFileEngine::mkdir(const QString &dirName, bool createParentDirecto using this function if it is non-empty. If the operation succeeds return true; otherwise return false. - This virtual function must be reimplemented by all subclasses. - \sa setFileName(), remove(), mkdir(), isRelativePath() */ bool QAbstractFileEngine::rmdir(const QString &dirName, bool recurseParentDirectories) const @@ -584,8 +574,6 @@ bool QAbstractFileEngine::rmdir(const QString &dirName, bool recurseParentDirect simply truncated. If the operations succceeds return true; otherwise return false; - This virtual function must be reimplemented by all subclasses. - \sa size() */ bool QAbstractFileEngine::setSize(qint64 size) @@ -597,8 +585,6 @@ bool QAbstractFileEngine::setSize(qint64 size) /*! Should return true if the underlying file system is case-sensitive; otherwise return false. - - This virtual function must be reimplemented by all subclasses. */ bool QAbstractFileEngine::caseSensitive() const { @@ -609,8 +595,6 @@ bool QAbstractFileEngine::caseSensitive() const Return true if the file referred to by this file engine has a relative path; otherwise return false. - This virtual function must be reimplemented by all subclasses. - \sa setFileName() */ bool QAbstractFileEngine::isRelativePath() const @@ -627,8 +611,6 @@ bool QAbstractFileEngine::isRelativePath() const rather than a directory, or if the directory is unreadable or does not exist or if nothing matches the specifications. - This virtual function must be reimplemented by all subclasses. - \sa setFileName() */ QStringList QAbstractFileEngine::entryList(QDir::Filters filters, const QStringList &filterNames) const @@ -653,8 +635,6 @@ QStringList QAbstractFileEngine::entryList(QDir::Filters filters, const QStringL ignore any members not mentioned in \a type, thus avoiding some potentially expensive lookups or system calls. - This virtual function must be reimplemented by all subclasses. - \sa setFileName() */ QAbstractFileEngine::FileFlags QAbstractFileEngine::fileFlags(FileFlags type) const @@ -670,8 +650,6 @@ QAbstractFileEngine::FileFlags QAbstractFileEngine::fileFlags(FileFlags type) co honored. If the operations succceeds return true; otherwise return false; - This virtual function must be reimplemented by all subclasses. - \sa size() */ bool QAbstractFileEngine::setPermissions(uint perms) @@ -699,8 +677,6 @@ QByteArray QAbstractFileEngine::id() const file name set in setFileName() when an unhandled format is requested. - This virtual function must be reimplemented by all subclasses. - \sa setFileName(), FileName */ QString QAbstractFileEngine::fileName(FileName file) const @@ -714,8 +690,6 @@ QString QAbstractFileEngine::fileName(FileName file) const the file. If \a owner is \c OwnerGroup return the ID of the group that own the file. If you can't determine the owner return -2. - This virtual function must be reimplemented by all subclasses. - \sa owner(), setFileName(), FileOwner */ uint QAbstractFileEngine::ownerId(FileOwner owner) const @@ -730,8 +704,6 @@ uint QAbstractFileEngine::ownerId(FileOwner owner) const that own the file. If you can't determine the owner return QString(). - This virtual function must be reimplemented by all subclasses. - \sa ownerId(), setFileName(), FileOwner */ QString QAbstractFileEngine::owner(FileOwner owner) const @@ -747,8 +719,6 @@ QString QAbstractFileEngine::owner(FileOwner owner) const Sets the file \a time to \a newDate, returning true if successful; otherwise returns false. - This virtual function must be reimplemented by all subclasses. - \sa fileTime() */ bool QAbstractFileEngine::setFileTime(const QDateTime &newDate, FileTime time) @@ -766,8 +736,6 @@ bool QAbstractFileEngine::setFileTime(const QDateTime &newDate, FileTime time) most recently accessed (e.g. read or written). If the time cannot be determined return QDateTime() (an invalid date time). - This virtual function must be reimplemented by all subclasses. - \sa setFileName(), QDateTime, QDateTime::isValid(), FileTime */ QDateTime QAbstractFileEngine::fileTime(FileTime time) const @@ -780,8 +748,6 @@ QDateTime QAbstractFileEngine::fileTime(FileTime time) const Sets the file engine's file name to \a file. This file name is the file that the rest of the virtual functions will operate on. - This virtual function must be reimplemented by all subclasses. - \sa rename() */ void QAbstractFileEngine::setFileName(const QString &file) |
