mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +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;
|
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_
|
/// If non zero, this buffer is a clone of existing buffer \p cloned_buffer_
|
||||||
/// This one is useful for preview detached in a thread.
|
/// This one is useful for preview detached in a thread.
|
||||||
Buffer const * cloned_buffer_;
|
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),
|
read_only(readonly_), filename(file), file_fully_loaded(false),
|
||||||
toc_backend(&parent), macro_lock(false), timestamp_(0),
|
toc_backend(&parent), macro_lock(false), timestamp_(0),
|
||||||
checksum_(0), wa_(0), undo_(parent), bibinfoCacheValid_(false),
|
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_) {
|
if (!cloned_buffer_) {
|
||||||
temppath = createBufferTmpDir();
|
temppath = createBufferTmpDir();
|
||||||
|
Loading…
Reference in New Issue
Block a user