fixed gcc/clang warnings

This commit is contained in:
silverqx
2022-06-26 14:51:58 +02:00
parent 02016ad7b7
commit 7c1e2dc8e4
2 changed files with 3 additions and 3 deletions

View File

@@ -35,7 +35,7 @@ namespace Orm::Utils
{
QString columnized;
// Estimate a size to avoid resizing, 7 for an item and 2 for the delimiter
columnized.reserve(container.size() * (7 + 2));
columnized.reserve(static_cast<QString::size_type>(container.size()) * (7 + 2));
if (container.empty())
return columnized;

View File

@@ -104,9 +104,9 @@ namespace Tom::Commands::Make::Support
QString createUsingsSection();
/*! Include paths for the generated model. */
std::set<QString> m_includesList;
std::set<QString> m_includesList {};
/*! Using directives for the generated model. */
std::set<QString> m_usingsList;
std::set<QString> m_usingsList {};
private:
/*! Ensure that a model with the given name doesn't already exist. */