From ba65f0d2c2c15be5f1ed88df98a08adc4a38d348 Mon Sep 17 00:00:00 2001 From: "andrew (from workstation)" Date: Wed, 20 May 2020 18:40:51 +0200 Subject: [PATCH] fix build --- td/telegram/files/FileId.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/td/telegram/files/FileId.h b/td/telegram/files/FileId.h index c5b3337b..18175c61 100644 --- a/td/telegram/files/FileId.h +++ b/td/telegram/files/FileId.h @@ -40,8 +40,8 @@ class FileId { return id; } - int32 get() { - time_ = std::time(nullptr); + int32 get() const { + const_cast(this)->time_ = std::time(nullptr); return id; }