This commit is contained in:
Hieu Hoang 2013-05-31 00:00:21 +01:00
parent d9bd7dc818
commit 65d2d68bc5
3 changed files with 11 additions and 10 deletions

View File

@ -36,11 +36,11 @@ FactorMask::FactorMask(const vector<FactorType> &factors)
bool FactorMask::IsUseable(const FactorMask &other) const
{
for (size_t i = 0; i < other.size(); ++i) {
if (other[i]) {
if (!this->operator[](i) ) {
return false;
}
}
if (other[i]) {
if (!this->operator[](i) ) {
return false;
}
}
}
return true;

View File

@ -819,9 +819,9 @@ void FVector::merge(const FVector &other)
// sparse
FNVmap::const_iterator iter;
for (iter = other.m_features.begin(); iter != other.m_features.end(); ++iter) {
const FName &otherKey = iter->first;
const FValue otherVal = iter->second;
m_features[otherKey] = otherVal;
const FName &otherKey = iter->first;
const FValue otherVal = iter->second;
m_features[otherKey] = otherVal;
}
}

View File

@ -92,8 +92,9 @@ public:
return m_filePath;
}
const std::vector<FeatureFunction*> &GetFeaturesToApply() const
{ return m_featuresToApply; }
const std::vector<FeatureFunction*> &GetFeaturesToApply() const {
return m_featuresToApply;
}
protected:
size_t m_tableLimit;