]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/Dialogs.C
include sys/time.h
[lyx.git] / src / frontends / Dialogs.C
index 7e77b7d9be428c8097630e2349981c218d434793..57b13fe0ec07d9be6242d3e2f5503d3f7790edf5 100644 (file)
@@ -2,7 +2,7 @@
  * \file frontends/Dialogs.C
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
- * \author Angus Leeming 
+ * \author Angus Leeming
  *
  * Full author contact details are available in file CREDITS
  *
@@ -11,9 +11,6 @@
 
 #include <config.h>
 
-#ifdef __GNUG__
-#pragma implementation
-#endif
 
 #include "Dialogs.h"
 
 template<typename Signal>
 class BugfixSignal {
 public:
-        Signal & operator()() { return thesignal(); }
-        Signal const & operator()() const { return thesignal(); }
+       Signal & operator()() { return thesignal(); }
+       Signal const & operator()() const { return thesignal(); }
 
 private:
-        Signal & thesignal() const
-        {
-                if (!signal_.get())
-                        signal_.reset(new Signal);
-                return *signal_;
-        }
-
-        mutable boost::scoped_ptr<Signal> signal_;
+       Signal & thesignal() const
+       {
+               if (!signal_.get())
+                       signal_.reset(new Signal);
+               return *signal_;
+       }
+
+       mutable boost::scoped_ptr<Signal> signal_;
 };
 
 
 boost::signal0<void> & Dialogs::redrawGUI()
 {
-        static BugfixSignal<boost::signal0<void> > thesignal;
-        return thesignal();
+       static BugfixSignal<boost::signal0<void> > thesignal;
+       return thesignal();
 }