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:
parent
c568257a52
commit
8e82c30680
@ -580,7 +580,7 @@ void QIODevice::setTextModeEnabled(bool enabled)
|
||||
*/
|
||||
bool QIODevice::isTextModeEnabled() const
|
||||
{
|
||||
return d_func()->openMode & Text;
|
||||
return d_func()->openMode.testAnyFlag(Text);
|
||||
}
|
||||
|
||||
/*!
|
||||
|
Loading…
Reference in New Issue
Block a user