mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-28 06:49:43 +00:00
Make staticbuffer static again
Otherwise the number of internal buffers in incremented on each cut action.
This commit is contained in:
parent
68408556c7
commit
ea118f2da5
@ -478,7 +478,7 @@ void putClipboard(ParagraphList const & paragraphs,
|
|||||||
// to be so, but the alternative is to construct a new one of these (with a
|
// to be so, but the alternative is to construct a new one of these (with a
|
||||||
// new temporary directory, etc) every time, and then to destroy it. So maybe
|
// new temporary directory, etc) every time, and then to destroy it. So maybe
|
||||||
// it's worth just keeping this one around.
|
// it's worth just keeping this one around.
|
||||||
Buffer * staticbuffer = theBufferList().newInternalBuffer(
|
static Buffer * staticbuffer = theBufferList().newInternalBuffer(
|
||||||
FileName::tempName("clipboard.internal").absFileName());
|
FileName::tempName("clipboard.internal").absFileName());
|
||||||
|
|
||||||
// These two things only really need doing the first time.
|
// These two things only really need doing the first time.
|
||||||
|
Loading…
Reference in New Issue
Block a user