diff options
| author | Dirk-Jan C. Binnema <djcb@djcbsoftware.nl> | 2025-07-27 10:39:56 +0300 |
|---|---|---|
| committer | Dirk-Jan C. Binnema <djcb@djcbsoftware.nl> | 2025-07-27 19:39:23 +0300 |
| commit | 28ea23a2a3494b7f1081deaaa307389e817868c9 (patch) | |
| tree | bc2c42d6ab448341996e60cde7da1d81e38a39cd /lib | |
| parent | 4c2ce92a15dd67ff7131165aa878d2e460dd1da8 (diff) | |
contacts-cache: cosmetics
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/mu-contacts-cache.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/mu-contacts-cache.cc b/lib/mu-contacts-cache.cc index 330d625..b422ed9 100644 --- a/lib/mu-contacts-cache.cc +++ b/lib/mu-contacts-cache.cc @@ -118,7 +118,7 @@ ContactsCache::Private::deserialize(const std::string& serialized) const std::stringstream ss{serialized, std::ios_base::in}; std::string line; - while (getline(ss, line)) { + while (std::getline(ss, line)) { const auto parts = Mu::split(line, SepaChar2); if (G_UNLIKELY(parts.size() != 5)) { mu_warning("error: '{}'", line); @@ -126,9 +126,9 @@ ContactsCache::Private::deserialize(const std::string& serialized) const } Contact ci(parts[0], // email std::move(parts[1]), // name - static_cast<int64_t>(g_ascii_strtoll(parts[3].c_str(), NULL, 10)), // message_date + static_cast<int64_t>(g_ascii_strtoll(parts[3].c_str(), {}, 10)), // message_date parts[2][0] == '1' ? true : false, // personal - (std::size_t)g_ascii_strtoll(parts[4].c_str(), NULL, 10), // frequency + static_cast<std::size_t>(g_ascii_strtoll(parts[4].c_str(), {}, 10)), // frequency g_get_monotonic_time()); // tstamp contacts.emplace(std::move(parts[0]), std::move(ci)); } |
