File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -470,10 +470,10 @@ - (BOOL)handleInput:(KeyHandlerInput *)input state:(InputState *)inState stateCa
470470 // the current cursor.
471471 if (_bpmfReadingBuffer->hasToneMarkerOnly () && _grid->readings ().size () > 0 && _grid->cursor () > 0 ) {
472472 size_t cursor = _grid->cursor () - 1 ;
473- std::string reading = _grid->readings ()[cursor];
473+ const std::string reading = _grid->readings ()[cursor];
474474 if (!reading.empty () && reading[0 ] != ' _' ) {
475475 Formosa::Mandarin::BopomofoReadingBuffer tmpBuffer (_bpmfReadingBuffer->keyboardLayout ());
476- Formosa::Mandarin::BopomofoSyllable syllable = Formosa::Mandarin::BopomofoSyllable::FromComposedString (reading);
476+ Formosa::Mandarin::BopomofoSyllable syllable = Formosa::Mandarin::BopomofoSyllable::FromComposedString (reading);
477477 tmpBuffer.setSyllableRemovingTone (syllable);
478478 tmpBuffer.combineKey ((char )charCode);
479479 std::string newReading = tmpBuffer.syllable ().composedString ();
You can’t perform that action at this time.
0 commit comments