Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHieu Hoang <hieuhoang@gmail.com>2015-10-16 15:53:33 +0300
committerHieu Hoang <hieuhoang@gmail.com>2015-10-16 15:53:33 +0300
commit786258cb288e0711a2614bfd36d5ec83353ab5c2 (patch)
treefd7d35c8d21552c9c56ea0b5de98495ab734d5ba /moses/Syntax
parentb9dcb55be22f9a5d229b817827d0ee02c82d311e (diff)
beautify
Diffstat (limited to 'moses/Syntax')
-rw-r--r--moses/Syntax/SVertex.cpp16
-rw-r--r--moses/Syntax/SVertexRecombinationOrderer.h4
2 files changed, 10 insertions, 10 deletions
diff --git a/moses/Syntax/SVertex.cpp b/moses/Syntax/SVertex.cpp
index f51c78354..cd4c1c666 100644
--- a/moses/Syntax/SVertex.cpp
+++ b/moses/Syntax/SVertex.cpp
@@ -28,9 +28,9 @@ size_t SVertex::hash() const
// states
for (size_t i = 0; i < states.size(); ++i) {
- const FFState *state = states[i];
- size_t hash = state->hash();
- boost::hash_combine(seed, hash);
+ const FFState *state = states[i];
+ size_t hash = state->hash();
+ boost::hash_combine(seed, hash);
}
return seed;
@@ -40,11 +40,11 @@ bool SVertex::operator==(const SVertex& other) const
{
// states
for (size_t i = 0; i < states.size(); ++i) {
- const FFState &thisState = *states[i];
- const FFState &otherState = *other.states[i];
- if (thisState != otherState) {
- return false;
- }
+ const FFState &thisState = *states[i];
+ const FFState &otherState = *other.states[i];
+ if (thisState != otherState) {
+ return false;
+ }
}
return true;
}
diff --git a/moses/Syntax/SVertexRecombinationOrderer.h b/moses/Syntax/SVertexRecombinationOrderer.h
index 334b8d749..a91a3b125 100644
--- a/moses/Syntax/SVertexRecombinationOrderer.h
+++ b/moses/Syntax/SVertexRecombinationOrderer.h
@@ -14,11 +14,11 @@ class SVertexRecombinationUnordered
{
public:
size_t operator()(const SVertex* hypo) const {
- return hypo->hash();
+ return hypo->hash();
}
bool operator()(const SVertex* hypoA, const SVertex* hypoB) const {
- return (*hypoA) == (*hypoB);
+ return (*hypoA) == (*hypoB);
}
};