Implementation, tests and first use of rangechecked_cast
This commit is contained in:
parent
c5f6da48ce
commit
f875f0f012
8 changed files with 61 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue