]> git.decadent.org.uk Git - videolink.git/blobdiff - framebuffer.hpp
Replaced auto_temp_file with temp_file, which handles creation as well as deletion.
[videolink.git] / framebuffer.hpp
index daf76596325c731dadb141c361ded43d8ce2e83d..ee2557b9ff332d5e4b73565abf64967a849ecc93 100644 (file)
@@ -4,10 +4,11 @@
 #ifndef INC_FRAMEBUFFER_HPP
 #define INC_FRAMEBUFFER_HPP
 
+#include <memory>
 #include <string>
 
 #include "auto_proc.hpp"
-#include "auto_temp_file.hpp"
+#include "temp_file.hpp"
 
 // Run Xvfb with a frame buffer of the given dimensions.
 class FrameBuffer
@@ -19,7 +20,7 @@ public:
 
 private:
     int display_num_;
-    auto_temp_file auth_file_;
+    std::auto_ptr<temp_file> auth_file_;
     auto_kill_proc server_proc_;
 };