MCPcopy Create free account
hub / github.com/OneMoreGres/ScreenTranslator / finishCorrection

Method finishCorrection

src/correct/corrector.cpp:81–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81void Corrector::finishCorrection(const TaskPtr &task)
82{
83 manager_.corrected(task);
84
85 SOFT_ASSERT(!queue_.empty(), return );
86 if (queue_.front() == task) {
87 queue_.pop_front();
88 } else {
89 LERROR() << "processed not first item in correction queue";
90 queue_.clear();
91 }
92 processQueue();
93}
94
95QString Corrector::substituteUser(const QString &source,
96 const LanguageId &language) const

Callers

nothing calls this directly

Calls 1

correctedMethod · 0.80

Tested by

no test coverage detected