summaryrefslogtreecommitdiffstats
path: root/src/context.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/context.cpp')
-rw-r--r--src/context.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/context.cpp b/src/context.cpp
index 46249f5..f4614dd 100644
--- a/src/context.cpp
+++ b/src/context.cpp
@@ -136,11 +136,11 @@ class GenericConstIterator : public TemplateListIntf::ConstIterator
}
void toLast()
{
- m_index=(int)m_list.size()-1;
+ m_index=static_cast<int>(m_list.size())-1;
}
void toNext()
{
- if (m_index<static_cast<int>(m_list.size())) ++m_index;
+ if (m_index < static_cast<int>(m_list.size())) ++m_index;
}
void toPrev()
{
@@ -148,7 +148,7 @@ class GenericConstIterator : public TemplateListIntf::ConstIterator
}
bool current(TemplateVariant &v) const
{
- if (m_index>=0 && m_index<static_cast<int>(m_list.size()))
+ if (m_index>=0 && m_index < static_cast<int>(m_list.size()))
{
v = m_list[m_index];
return true;