]> git.lyx.org Git - features.git/commitdiff
Make staticbuffer static again
authorVincent van Ravesteijn <vfr@lyx.org>
Sun, 28 Apr 2013 16:45:51 +0000 (18:45 +0200)
committerVincent van Ravesteijn <vfr@lyx.org>
Sun, 28 Apr 2013 16:51:20 +0000 (18:51 +0200)
Otherwise the number of internal buffers in incremented on each cut
action.

src/CutAndPaste.cpp

index b996d8aa3e203040be5d3e3bf1e9a44fc9034b22..b0af8753cc622fdf0addb4405f6a751465297234 100644 (file)
@@ -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
        // new temporary directory, etc) every time, and then to destroy it. So maybe
        // it's worth just keeping this one around.
-       Buffer * staticbuffer = theBufferList().newInternalBuffer(
+       static Buffer * staticbuffer = theBufferList().newInternalBuffer(
                FileName::tempName("clipboard.internal").absFileName());
 
        // These two things only really need doing the first time.