OSDN Git Service
(root)
/
winmerge-jp
/
winmerge-jp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28fc9ca
)
Fix broken moved blocks detection feature
author
sdottaka
<none@none>
Tue, 12 Feb 2013 03:10:22 +0000
(19:10 -0800)
committer
sdottaka
<none@none>
Tue, 12 Feb 2013 03:10:22 +0000
(19:10 -0800)
Src/MovedBlocks.cpp
patch
|
blob
|
history
diff --git
a/Src/MovedBlocks.cpp
b/Src/MovedBlocks.cpp
index
13dc8e0
..
86ce8a4
100644
(file)
--- a/
Src/MovedBlocks.cpp
+++ b/
Src/MovedBlocks.cpp
@@
-33,7
+33,7
@@
public:
void Remove(int val) { m_map.erase(val); }
size_t count() const { return m_map.size(); }
bool isPresent(int val) const { m_map.find(val) != m_map.end(); }
- int getSingle() const { return m_map.begin()->
second
; }
+ int getSingle() const { return m_map.begin()->
first
; }
private:
std::map<int, int> m_map;
};