Kate 18.03.70 Small Bug

Thirtheu Alexandru alex_giusi_tiri2 at yahoo.com
Tue Jan 16 23:28:33 UTC 2018


Hello,
I would like to note a small mistake, which I assume that it is, that I noticed while building Kate 18.03.70 from git://anongit.kde.org/kate:



[ 74%] Building CXX object addons/katesql/CMakeFiles/katesqlplugin.dir/schemawidget.cpp.o/root/Projects/kde/kate/addons/katesql/schemawidget.cpp: In member function ‘void SchemaWidget::generateStatement(QSqlDriver::StatementType)’:
/root/Projects/kde/kate/addons/katesql/schemawidget.cpp:344:71: warning: enum constant in boolean context [-Wint-in-bool-context]
       if (statementType == QSqlDriver::UpdateStatement || QSqlDriver::InsertStatement)
                                                                                                      ^~~~~~~~~~~~~~~

I believe it should be written like this:    if (statementType == QSqlDriver::UpdateStatement || statementType == QSqlDriver::InsertStatement)


Thank you for taking the time to read this!
Best regards,Alexandru Thirtheu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kwrite-devel/attachments/20180116/a0ceebc4/attachment.html>


More information about the KWrite-Devel mailing list