QIODevice: code tidies

Turn an implicit conversion into a call to QFlags::testAnyFlag.

Change-Id: Idbd80bb6a9b5d84952b76d8d7544f617fe693b91
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Giuseppe D'Angelo 2021-05-02 02:34:00 +02:00
parent c568257a52
commit 8e82c30680

View File

@ -580,7 +580,7 @@ void QIODevice::setTextModeEnabled(bool enabled)
*/
bool QIODevice::isTextModeEnabled() const
{
return d_func()->openMode & Text;
return d_func()->openMode.testAnyFlag(Text);
}
/*!