]> git.lyx.org Git - features.git/commit
Don't double delete by making TempFile noncopyable
authorGeorg Baum <baum@lyx.org>
Mon, 9 Jun 2014 10:59:47 +0000 (12:59 +0200)
committerGeorg Baum <baum@lyx.org>
Mon, 9 Jun 2014 11:03:32 +0000 (13:03 +0200)
commitae15b5973487852325baf0859b40632e0f12b9c7
treec27df32683bda5297b30c70231f3670bfa22e129
parentbf782ee02ac35d575247bf63eabbd38bd31c53af
Don't double delete by making TempFile noncopyable

The compiler generated copy constructor and assignment operator are wrong.
This could easily be fixed by implementing them manually, but a) they are
not needed, and b) the semantics would be unclear (should the copy point
to a new temp file or not?), so it is better to forbid them.
src/support/TempFile.h