Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 728b4b6

Browse files
committed
Resolve use of QIODevice::WriteOnly for Qt 6
1 parent 0dcb637 commit 728b4b6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎src/CommandLineParser.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,11 @@ CommandLineParser::~CommandLineParser()
327327

328328
void CommandLineParser::usage(const QString &name, const QString &argumentDescription)
329329
{
330+
#if QT_VERSION >= 0x060000
331+
QTextStream cout(stdout, QIODeviceBase::WriteOnly);
332+
#else
330333
QTextStream cout(stdout, QIODevice::WriteOnly);
334+
#endif
331335
cout << "Usage: " << d->argumentStrings[0];
332336
if (! name.isEmpty())
333337
cout << " " << name;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /