mirror of
https://github.com/zxing/zxing.git
synced 2025-02-02 05:41:08 -08:00
Issue 1436 use return value from function to have an effect
git-svn-id: https://zxing.googlecode.com/svn/trunk@2555 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
87b7a44c8f
commit
2287365f7a
|
@ -120,7 +120,7 @@ std::vector<Ref<FinderPatternInfo> > MultiFinderPatternFinder::findMulti(DecodeH
|
|||
std::vector<Ref<FinderPatternInfo> > result;
|
||||
for (unsigned int i = 0; i < patternInfo.size(); i++) {
|
||||
std::vector<Ref<FinderPattern> > pattern = patternInfo[i];
|
||||
FinderPatternFinder::orderBestPatterns(pattern);
|
||||
pattern = FinderPatternFinder::orderBestPatterns(pattern);
|
||||
result.push_back(Ref<FinderPatternInfo>(new FinderPatternInfo(pattern)));
|
||||
}
|
||||
return result;
|
||||
|
@ -191,7 +191,7 @@ std::vector<std::vector<Ref<FinderPattern> > > MultiFinderPatternFinder::selectB
|
|||
test.push_back(p1);
|
||||
test.push_back(p2);
|
||||
test.push_back(p3);
|
||||
FinderPatternFinder::orderBestPatterns(test);
|
||||
test = FinderPatternFinder::orderBestPatterns(test);
|
||||
// Calculate the distances: a = topleft-bottomleft, b=topleft-topright, c = diagonal
|
||||
Ref<FinderPatternInfo> info = Ref<FinderPatternInfo>(new FinderPatternInfo(test));
|
||||
float dA = FinderPatternFinder::distance(info->getTopLeft(), info->getBottomLeft());
|
||||
|
|
Loading…
Reference in a new issue