Mercurial > hg > orthanc
comparison OrthancServer/Sources/ServerIndex.cpp @ 4569:19ea4ecd6d9a db-changes
cppcheck
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 08 Mar 2021 15:13:25 +0100 |
parents | a3e6aa2b07b0 |
children | 648defffc8cc |
comparison
equal
deleted
inserted
replaced
4568:a3e6aa2b07b0 | 4569:19ea4ecd6d9a |
---|---|
3250 private: | 3250 private: |
3251 uint64_t newValue_; | 3251 uint64_t newValue_; |
3252 GlobalProperty sequence_; | 3252 GlobalProperty sequence_; |
3253 | 3253 |
3254 public: | 3254 public: |
3255 Operations(GlobalProperty sequence) : | 3255 explicit Operations(GlobalProperty sequence) : |
3256 newValue_(0), // Dummy initialization | |
3256 sequence_(sequence) | 3257 sequence_(sequence) |
3257 { | 3258 { |
3258 } | 3259 } |
3259 | 3260 |
3260 uint64_t GetNewValue() const | 3261 uint64_t GetNewValue() const |
3294 } | 3295 } |
3295 }; | 3296 }; |
3296 | 3297 |
3297 Operations operations(sequence); | 3298 Operations operations(sequence); |
3298 Apply(operations); | 3299 Apply(operations); |
3300 assert(operations.GetNewValue() != 0); | |
3299 return operations.GetNewValue(); | 3301 return operations.GetNewValue(); |
3300 } | 3302 } |
3301 | 3303 |
3302 | 3304 |
3303 void ServerIndex::DeleteChanges() | 3305 void ServerIndex::DeleteChanges() |