Skip to content

Commit

Permalink
This should of gone in with r5681
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@5684 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Aug 10, 2006
1 parent 3dd4fe4 commit 5fb61d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/gui/qgsattributeaction.cpp
Expand Up @@ -111,7 +111,7 @@ QgsAttributeAction::aIter QgsAttributeAction::retrieveAction(unsigned int index)
if (index >= 0 && index < mActions.size())
{
a_iter = mActions.begin();
for (int i = 0; i < index; ++i, ++a_iter)
for (unsigned int i = 0; i < index; ++i, ++a_iter)
{}
}
return a_iter;
Expand All @@ -136,12 +136,12 @@ QString QgsAttributeAction::expandAction(QString action, const std::vector<std::
// for the actual substitutions.

QString expanded_action;
if (clickedOnValue >= 0 && clickedOnValue < values.size())
if (clickedOnValue >= 0 && clickedOnValue < static_cast<unsigned int>(values.size()))
expanded_action = action.replace("%%", values[clickedOnValue].second);
else
expanded_action = action;

for (int i = 0; i < values.size(); ++i)
for (unsigned int i = 0; i < values.size(); ++i)
{
QString to_replace = "%" + values[i].first;
expanded_action = expanded_action.replace(to_replace, values[i].second);
Expand Down

0 comments on commit 5fb61d3

Please sign in to comment.