Skip to content
Commit fad3cfd2 authored by Igor Kushnir's avatar Igor Kushnir Committed by Milian Wolff
Browse files

Prevent using commentRepository() without locking

commentRepository() returned a reference to StringRepository, which
could be accidentally used directly rather than via the helper function
commentRepositoryOp() that locks the mutex. Prevent such usage mistakes
by encapsulating the mutex and the repository in class CommentRepository
similar to class StaticCacheData in modificationrevision.cpp.
parent 090dbf9f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment