diff src/Matcher.cpp @ 205:010b91e44098 memory

Rename getRowRange/getColRange to make nature of arg clearer
author Chris Cannam
date Fri, 27 Feb 2015 12:21:58 +0000
parents 006fd4cb95b3
children fb799a1aabd8
line wrap: on
line diff
--- a/src/Matcher.cpp	Fri Feb 27 12:20:32 2015 +0000
+++ b/src/Matcher.cpp	Fri Feb 27 12:21:58 2015 +0000
@@ -138,7 +138,7 @@
 }
 
 pair<int, int>
-Matcher::getColRange(int i)
+Matcher::getColRangeForRow(int i)
 {
     if (m_firstPM) {
         if (i < 0 || i >= int(m_first.size())) {
@@ -149,12 +149,12 @@
             return pair<int, int>(m_first[i], m_last[i]);
         }
     } else {
-        return m_otherMatcher->getRowRange(i);
+        return m_otherMatcher->getRowRangeForCol(i);
     }
 }
 
 pair<int, int>
-Matcher::getRowRange(int j)
+Matcher::getRowRangeForCol(int j)
 {
     if (m_firstPM) {
 
@@ -176,7 +176,7 @@
         }
 
     } else {
-        return m_otherMatcher->getColRange(j);
+        return m_otherMatcher->getColRangeForRow(j);
     }
 }