diff options
| author | levlam <levlam@telegram.org> | 2025-04-14 14:01:51 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2025-04-14 14:01:51 +0300 |
| commit | ef2825148101449c598a36ed0aefbee5fc0ee356 (patch) | |
| tree | 499bbc3ba71c012a69647645d6a1801b43a6977e /test/online.cpp | |
| parent | 04adfc87deea4c804def118e88c89a08c388b32b (diff) | |
Various improvements.
Diffstat (limited to 'test/online.cpp')
| -rw-r--r-- | test/online.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/online.cpp b/test/online.cpp index a85858b91..ca8396373 100644 --- a/test/online.cpp +++ b/test/online.cpp @@ -212,7 +212,7 @@ class InitTask : public Task { public: struct Options { string name; - int32 api_id; + int32 api_id = 0; string api_hash; }; InitTask(Options options, td::Promise<> promise) : options_(std::move(options)), promise_(std::move(promise)) { @@ -279,8 +279,8 @@ class InitTask : public Task { class GetMe : public Task { public: struct Result { - int64 user_id; - int64 chat_id; + int64 user_id = 0; + int64 chat_id = 0; }; explicit GetMe(Promise<Result> promise) : promise_(std::move(promise)) { } @@ -491,7 +491,7 @@ class TestTd : public Actor { private: Options options_; ActorOwn<TestClient> alice_; - GetMe::Result alice_id_; + GetMe::Result alice_id_ = 0; std::string alice_cache_dir_; ActorOwn<TestClient> bob_; |
