]> git.lyx.org Git - lyx.git/blobdiff - src/graphics/PreviewImage.C
Remove cached var from RenderPreview. Changes elsewhere to suit.
[lyx.git] / src / graphics / PreviewImage.C
index 9593ec568bacf093a5fd75cc043ec5bee934ebb8..75d41634ced7a43394d54dc6f2bf9d2fccf2633e 100644 (file)
@@ -1,26 +1,28 @@
 /**
- *  \file PreviewImage.C
+ * \file PreviewImage.C
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
  * \author Angus Leeming
  *
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
  */
 
 #include <config.h>
 
 #include "PreviewImage.h"
-#include "PreviewLoader.h"
 #include "GraphicsImage.h"
 #include "GraphicsLoader.h"
+#include "PreviewLoader.h"
 
 #include "support/lyxlib.h"
 
 #include <boost/bind.hpp>
-#include <boost/signals/trackable.hpp>
 
-using namespace lyx::support;
+namespace support = lyx::support;
+
+using std::string;
+
 
 namespace lyx {
 namespace graphics {
@@ -114,7 +116,7 @@ PreviewImage::Impl::Impl(PreviewImage & p, PreviewLoader & l,
 
 PreviewImage::Impl::~Impl()
 {
-       unlink(iloader_.filename());
+       support::unlink(iloader_.filename());
 }
 
 
@@ -147,10 +149,10 @@ void PreviewImage::Impl::statusChanged()
                break;
 
        case Ready:
-               unlink(iloader_.filename());
-               ploader_.emitSignal(parent_);
+               support::unlink(iloader_.filename());
                break;
        }
+       ploader_.emitSignal(parent_);
 }
 
 } // namespace graphics