Skip to content

Commit

Permalink
qsavefile_p.h: fix missing qsavefile.h include
Browse files Browse the repository at this point in the history
This causes

  qsavefile_p.h:28:22: error: unknown type name 'QSaveFile'
      Q_DECLARE_PUBLIC(QSaveFile)
                       ^

when qsavefile_p.h is included before qsavefile.h was.

Make the header self-sufficient by incuding the Public class' header,
too, as is customary.

Amends e993df8.

Pick-to: 6.5 6.2 5.15
Task-number: QTBUG-126219
Change-Id: I17eb2a357bf1ef7ef5b5e3a3e56c4a921ba30951
Reviewed-by: Thiago Macieira <[email protected]>
(cherry picked from commit ad6e4df)
Reviewed-by: Qt Cherry-pick Bot <[email protected]>
(cherry picked from commit e2880c7)
  • Loading branch information
marcmutz authored and Qt Cherry-pick Bot committed Sep 18, 2024
1 parent 9b69f27 commit c5f8fff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/corelib/io/qsavefile_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// We mean it.
//

#include <QtCore/qglobal.h>
#include <QtCore/qsavefile.h>

#ifndef QT_NO_TEMPORARYFILE

Expand Down

0 comments on commit c5f8fff

Please sign in to comment.