mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 13:36:48 +08:00
Return a default-constructed QString instead of implicitly converting an empty string literal.
This commit is contained in:
@@ -22,7 +22,7 @@ namespace BlackMisc
|
||||
//! Container to standard HTML table
|
||||
template <class Obj, class Container> QString toHtmlTable(const CPropertyIndexList &indexes, const Container &container)
|
||||
{
|
||||
if (indexes.isEmpty() || container.isEmpty()) { return ""; }
|
||||
if (indexes.isEmpty() || container.isEmpty()) { return {}; }
|
||||
QString html;
|
||||
for (const Obj &obj : container)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user