This is a tiny part of the commit which is needed for other thread-safety
fixes.
}
+void TempFile::setAutoRemove(bool autoremove)
+{
+ d->f.setAutoRemove(autoremove);
+}
+
} // namespace support
} // namespace lyx
* This is empty if the file could not be created.
*/
FileName name() const;
+ /**
+ * Set whether the file should be automatically deleted in the
+ * destructor.
+ * Automatic deletion is the default, but it can be switched off if
+ * the file should be kept, because it should be renamed afterwards.
+ */
+ void setAutoRemove(bool autoremove);
private:
///
struct Private;