File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -66,8 +66,8 @@ class User :public AnysTable
6666 int nTrust = 0 ;
6767 time_t tCreated = 0 ;
6868
69- explicit User (long long id): ID(id){
70- dict[" tCreated" ] = tCreated = time ( nullptr ) ;
69+ explicit User (long long id): ID(id), tCreated(time( nullptr )) {
70+ dict[" tCreated" ] = ( long long )tCreated ;
7171 }
7272 unordered_map<long long , string> strNick{};
7373 mutable std::mutex ex_user;
@@ -157,8 +157,8 @@ class Chat :public AnysTable {
157157 long long inviter = 0 ;
158158 time_t tCreated = 0 ;
159159
160- explicit Chat (long long id):ID(id) {
161- dict[" tCreated" ] = tCreated = time ( nullptr ) ;
160+ explicit Chat (long long id):ID(id), tCreated(time( nullptr )) {
161+ dict[" tCreated" ] = ( long long )tCreated ;
162162 }
163163
164164 unordered_map<long long , AnysTable>ChConf;
You can’t perform that action at this time.
0 commit comments