Implementation, tests and first use of rangechecked_cast

This commit is contained in:
eelke 2019-11-04 18:02:48 +01:00
parent c5f6da48ce
commit f875f0f012
8 changed files with 61 additions and 5 deletions

View file

@ -1,5 +1,6 @@
#include "ExplainTreeModelItem.h"
#include "json/json.h"
#include "rangechecked_cast.h"
#include <limits>
namespace {
@ -110,7 +111,7 @@ ExplainTreeModelItemPtr ExplainTreeModelItem::child(int row)
int ExplainTreeModelItem::childCount() const
{
return m_childItems.size();
return rangechecked_cast<int>(m_childItems.size());
}
//int ExplainTreeModelItem::columnCount() const