88#include < autofill_common.h>
99
1010#include < functional>
11- #include < memory>
1211
1312#include " flutter/shell/platform/tizen/logger.h"
1413
@@ -17,15 +16,14 @@ TizenAutofill::TizenAutofill() {
1716}
1817
1918TizenAutofill::~TizenAutofill () {
20- autofill_destroy (ah_ );
19+ autofill_destroy (autofill_ );
2120}
2221
2322void TizenAutofill::InitailizeAutofill () {
24- autofill_create (&ah_ );
23+ autofill_create (&autofill_ );
2524
26- int ret;
27- ret = autofill_connect (
28- ah_,
25+ int ret = autofill_connect (
26+ autofill_,
2927 [](autofill_h ah, autofill_connection_status_e status, void * user_data) {
3028 },
3129 NULL );
@@ -34,7 +32,7 @@ void TizenAutofill::InitailizeAutofill() {
3432 }
3533
3634 autofill_fill_response_set_received_cb (
37- ah_ ,
35+ autofill_ ,
3836 [](autofill_h ah, autofill_fill_response_h fill_response, void * data) {
3937 int count = 0 ;
4038 autofill_fill_response_get_group_count (fill_response, &count);
@@ -110,7 +108,7 @@ void TizenAutofill::RequestAutofill(std::vector<std::string> hints,
110108 }
111109 }
112110
113- int ret = autofill_fill_request (ah_ , view_info);
111+ int ret = autofill_fill_request (autofill_ , view_info);
114112 if (ret != AUTOFILL_ERROR_NONE) {
115113 FT_LOG (Error) << " autofill_fill_request error" ;
116114 }
@@ -145,9 +143,7 @@ void TizenAutofill::RegisterAutofillItem(std::string view_id,
145143 free (app_id);
146144 }
147145
148- int ret;
149-
150- ret = autofill_commit (ah_, svi_h);
146+ int ret = autofill_commit (autofill_, svi_h);
151147 if (ret != AUTOFILL_ERROR_NONE) {
152148 FT_LOG (Error) << " autofill_commit error" ;
153149 }
0 commit comments