Skip to content

Commit

Permalink
QSaveFile: mention that you need to setFileName() before open()
Browse files Browse the repository at this point in the history
... in the descriptiong of the (QObject*) ctor.

Pick-to: 6.9 6.8 6.5 5.15
Change-Id: I1b8a788eff1fbb50134b51de7d9ee8f7cb2af785
Reviewed-by: Volker Hilsheimer <[email protected]>
Reviewed-by: Thiago Macieira <[email protected]>
  • Loading branch information
marcmutz committed Jan 11, 2025
1 parent 97fe38f commit 6397dac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/corelib/io/qsavefile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ QSaveFile::QSaveFile(const QString &name)

/*!
Constructs a new file object with the given \a parent.
You need to call setFileName() before open().
*/
QSaveFile::QSaveFile(QObject *parent)
: QFileDevice(*new QSaveFilePrivate, parent)
Expand Down

0 comments on commit 6397dac

Please sign in to comment.