mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 21:40:19 +00:00
Restore the privacy of the parent_buffer. We want all access to go via
the accessors, so we can do appropriate checks. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32628 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
6891e077d0
commit
97a4f77443
@ -259,12 +259,14 @@ public:
|
||||
parent_buffer = pb;
|
||||
}
|
||||
|
||||
/// So we can force access via the accessors.
|
||||
mutable Buffer const * parent_buffer;
|
||||
|
||||
/// If non zero, this buffer is a clone of existing buffer \p cloned_buffer_
|
||||
/// This one is useful for preview detached in a thread.
|
||||
Buffer const * cloned_buffer_;
|
||||
|
||||
private:
|
||||
/// So we can force access via the accessors.
|
||||
mutable Buffer const * parent_buffer;
|
||||
|
||||
};
|
||||
|
||||
|
||||
@ -293,7 +295,7 @@ Buffer::Impl::Impl(Buffer & parent, FileName const & file, bool readonly_,
|
||||
read_only(readonly_), filename(file), file_fully_loaded(false),
|
||||
toc_backend(&parent), macro_lock(false), timestamp_(0),
|
||||
checksum_(0), wa_(0), undo_(parent), bibinfoCacheValid_(false),
|
||||
parent_buffer(0), cloned_buffer_(cloned_buffer)
|
||||
cloned_buffer_(cloned_buffer), parent_buffer(0)
|
||||
{
|
||||
if (!cloned_buffer_) {
|
||||
temppath = createBufferTmpDir();
|
||||
|
Loading…
Reference in New Issue
Block a user