From fffc7766e595e4e2ffd970d3881bead70528338a Mon Sep 17 00:00:00 2001 From: silverqx Date: Sat, 23 Mar 2024 17:45:12 +0100 Subject: [PATCH] orm removed useless static_cast<> --- include/orm/tiny/concerns/buildsqueries.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/orm/tiny/concerns/buildsqueries.hpp b/include/orm/tiny/concerns/buildsqueries.hpp index 46663085a..f0368abd1 100644 --- a/include/orm/tiny/concerns/buildsqueries.hpp +++ b/include/orm/tiny/concerns/buildsqueries.hpp @@ -118,7 +118,7 @@ namespace Concerns we will call the callback with the current chunk of these results. */ auto models = builder().forPage(page, count).get(); - modelsSize = static_cast(models.size()); + modelsSize = models.size(); if (modelsSize == 0) break; @@ -223,7 +223,7 @@ namespace Concerns we will call the callback with the current chunk of these results. */ auto models = clone.forPageAfterId(count, lastId, columnName, true).get(); - modelsSize = static_cast(models.size()); + modelsSize = models.size(); if (modelsSize == 0) break;