From ba5ae7229a51f9bfc2a14a1ba25f752ff593facd Mon Sep 17 00:00:00 2001 From: levlam Date: Fri, 23 Aug 2019 19:25:07 +0300 Subject: [PATCH] Mark Bitmask::oompress const. GitOrigin-RevId: 9dc12cb8b24afe5613e0dbdfca48da30da4c59b5 --- td/telegram/files/FileBitmask.cpp | 2 +- td/telegram/files/FileBitmask.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/td/telegram/files/FileBitmask.cpp b/td/telegram/files/FileBitmask.cpp index 8db60164..cbb09248 100644 --- a/td/telegram/files/FileBitmask.cpp +++ b/td/telegram/files/FileBitmask.cpp @@ -21,7 +21,7 @@ Bitmask::Bitmask(Ones, int64 count) : data_(narrow_cast((count + 7) / 8) } } -Bitmask Bitmask::compress(int k) { +Bitmask Bitmask::compress(int k) const { Bitmask res; for (int64 i = 0; i * k < size(); i++) { bool f = true; diff --git a/td/telegram/files/FileBitmask.h b/td/telegram/files/FileBitmask.h index 319f1ffd..c170a000 100644 --- a/td/telegram/files/FileBitmask.h +++ b/td/telegram/files/FileBitmask.h @@ -30,7 +30,7 @@ class Bitmask { void set(int64 offset_part); int64 size() const; - Bitmask compress(int k); + Bitmask compress(int k) const; private: std::string data_;