mirror of
https://github.com/dgirardeau/q3DMASC.git
synced 2026-08-31 09:30:48 +08:00
Missing default/Invalid in a switch statement
This commit is contained in:
@@ -158,7 +158,7 @@ bool ContextBasedFeature::prepare( const CorePoints& corePoints,
|
||||
errorMessage = "Not enough memory";
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
for (unsigned i = 0; i < classifSF->size(); ++i)
|
||||
{
|
||||
if (classifSF->getValue(i) == fClass)
|
||||
@@ -224,6 +224,10 @@ bool ContextBasedFeature::prepare( const CorePoints& corePoints,
|
||||
case DH:
|
||||
s = static_cast<ScalarType>(sqrt(pow(P->x - sumQ.x / kNN, 2.0) + pow(P->y - sumQ.y / kNN, 2.0)));
|
||||
break;
|
||||
default:
|
||||
assert(false);
|
||||
s = CCCoreLib::NAN_VALUE;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user