@@ -248,21 +248,21 @@ void TextInputChannel::HandleMethodCall(
248248 " Selection base/extent values invalid." );
249249 return ;
250250 }
251- auto selection_base_value = selection_base->value .GetInt ();
252- auto selection_extent_value = selection_extent->value .GetInt ();
251+ int selection_base_value = selection_base->value .GetInt ();
252+ int selection_extent_value = selection_extent->value .GetInt ();
253253
254254 active_model_->SetText (text->value .GetString ());
255255 active_model_->SetSelection (
256256 TextRange (selection_base_value, selection_extent_value));
257257
258258 auto composing_base = args.FindMember (kComposingBaseKey );
259259 auto composing_extent = args.FindMember (kComposingBaseKey );
260- auto composing_base_value = composing_base != args.MemberEnd ()
261- ? composing_base->value .GetInt ()
262- : -1 ;
263- auto composing_extent_value = composing_extent != args.MemberEnd ()
264- ? composing_extent->value .GetInt ()
265- : -1 ;
260+ int composing_base_value = composing_base != args.MemberEnd ()
261+ ? composing_base->value .GetInt ()
262+ : -1 ;
263+ int composing_extent_value = composing_extent != args.MemberEnd ()
264+ ? composing_extent->value .GetInt ()
265+ : -1 ;
266266
267267 if (composing_base_value == -1 && composing_extent_value == -1 ) {
268268 active_model_->EndComposing ();
@@ -272,8 +272,8 @@ void TextInputChannel::HandleMethodCall(
272272 size_t cursor_offset = selection_base_value - composing_start;
273273
274274 active_model_->SetComposingRange (
275- flutter:: TextRange (static_cast <size_t >(composing_base_value),
276- static_cast <size_t >(composing_extent_value)),
275+ TextRange (static_cast <size_t >(composing_base_value),
276+ static_cast <size_t >(composing_extent_value)),
277277 cursor_offset);
278278 }
279279 SendStateUpdate (*active_model_);
@@ -288,7 +288,7 @@ void TextInputChannel::HandleMethodCall(
288288
289289void TextInputChannel::SendStateUpdate (const TextInputModel& model) {
290290 auto args = std::make_unique<rapidjson::Document>(rapidjson::kArrayType );
291- auto & allocator = args->GetAllocator ();
291+ rapidjson::MemoryPoolAllocator<> & allocator = args->GetAllocator ();
292292 args->PushBack (client_id_, allocator);
293293
294294 TextRange selection = model.selection ();
@@ -326,7 +326,7 @@ bool TextInputChannel::FilterEvent(Ecore_Event_Key* event, bool is_down) {
326326 FT_LOG (Debug) << " Entering select mode." ;
327327 }
328328#else
329- auto device_name = ecore_device_name_get (event->dev );
329+ const char * device_name = ecore_device_name_get (event->dev );
330330 bool is_ime = device_name ? strcmp (device_name, " ime" ) == 0 : true ;
331331#endif
332332
@@ -422,7 +422,7 @@ void TextInputChannel::EnterPressed(TextInputModel* model, bool select) {
422422 SendStateUpdate (*model);
423423 }
424424 auto args = std::make_unique<rapidjson::Document>(rapidjson::kArrayType );
425- auto & allocator = args->GetAllocator ();
425+ rapidjson::MemoryPoolAllocator<> & allocator = args->GetAllocator ();
426426 args->PushBack (client_id_, allocator);
427427 args->PushBack (rapidjson::Value (input_action_, allocator).Move (), allocator);
428428
0 commit comments