diff options
author | Tor Egge <Tor.Egge@broadpark.no> | 2018-05-27 02:35:33 +0200 |
---|---|---|
committer | Tor Egge <Tor.Egge@broadpark.no> | 2018-05-27 18:22:20 +0000 |
commit | dc3b5a57b6706bb13a685e5f97d2517dd87b34e3 (patch) | |
tree | 098a7d1220d798edf23bc56847a4b2903a0bba2a /fsa | |
parent | 2b33daa972f399b7734215ac03d8102cb68d7c1b (diff) |
Use fallthrough attributes.
Diffstat (limited to 'fsa')
-rw-r--r-- | fsa/src/vespa/fsa/segmenter.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fsa/src/vespa/fsa/segmenter.cpp b/fsa/src/vespa/fsa/segmenter.cpp index d13249a5ce8..3bcb3f1b489 100644 --- a/fsa/src/vespa/fsa/segmenter.cpp +++ b/fsa/src/vespa/fsa/segmenter.cpp @@ -77,16 +77,16 @@ void Segmenter::Segments::buildSegmentation(Segmenter::SegmentationMethod method switch(method){ case SEGMENTATION_WEIGHTED_BIAS100: bias+=50; - //@fallthrough@ + [[fallthrough]]; case SEGMENTATION_WEIGHTED_BIAS50: bias+=30; - //@fallthrough@ + [[fallthrough]]; case SEGMENTATION_WEIGHTED_BIAS20: bias+=10; - //@fallthrough@ + [[fallthrough]]; case SEGMENTATION_WEIGHTED_BIAS10: bias+=10; - //@fallthrough@ + [[fallthrough]]; case SEGMENTATION_WEIGHTED: bestid=-1; for(i=n_txt;i>=0;i--){ |