mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-14 22:56:12 -04:00
Explicitly create std::string from absl::string_view
Android does not support implicitly converting from absl::string_view to std::string. PiperOrigin-RevId: 476415970
This commit is contained in:
committed by
Copybara-Service
parent
43da74bb7c
commit
4b8575962a
@@ -60,8 +60,8 @@ CredentialSelector BuildDefaultCredentialSelector() {
|
||||
constexpr absl::string_view kAppId = "0192";
|
||||
constexpr absl::string_view kAccountName = "test_account";
|
||||
CredentialSelector credential_selector;
|
||||
credential_selector.manager_app_id = kAppId;
|
||||
credential_selector.account_name = kAccountName;
|
||||
credential_selector.manager_app_id = std::string(kAppId);
|
||||
credential_selector.account_name = std::string(kAccountName);
|
||||
return credential_selector;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user