]> git.lyx.org Git - lyx.git/blobdiff - src/Variables.C
Fix bug 2195: Slowness in rendering inside insets, especially on the Mac
[lyx.git] / src / Variables.C
index 25e3c44539afcb36a98768602a470cf1c38e3643..67102ebc2ade1190911e069764dc5fd5cc04bccc 100644 (file)
@@ -1,19 +1,16 @@
-/* This file is part of
-* ====================================================== 
-* 
-*           LyX, The Document Processor
-*        
-*           Copyright 1995 Matthias Ettrich
-*           Copyright 1995-2001 the LyX Team.
-*
-* ====================================================== */
+/**
+ * \file Variables.C
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author Lars Gullik Bjønnes
+ * \author Jean-Marc Lasgouttes
+ *
+ * Full author contact details are available in file CREDITS.
+ */
 
 #include <config.h>
 
-#ifdef __GNUG__
-#pragma implementation "Variables.h"
-#endif
-
 #include "Variables.h"
 #include "support/LRegex.h"
 
@@ -22,7 +19,7 @@ void Variables::set(string const & var, string const & val)
 {
        // We want to use const_iterator (Lgb)
        Vars::iterator cit = vars_.find(var);
-       if (cit != vars_.end()) 
+       if (cit != vars_.end())
                vars_.erase(var);
        vars_[var] = val;;
 }
@@ -31,9 +28,9 @@ void Variables::set(string const & var, string const & val)
 string const Variables::get(string const & var) const
 {
        Vars::const_iterator cit = vars_.find(var);
-       if (cit != vars_.end()) 
-               return (*cit).second;
-       else 
+       if (cit != vars_.end())
+               return cit->second;
+       else
                return string();
 }
 
@@ -41,7 +38,7 @@ string const Variables::get(string const & var) const
 bool Variables::isSet(string const & var) const
 {
        Vars::const_iterator cit = vars_.find(var);
-       return (cit != vars_.end()); 
+       return (cit != vars_.end());
 }
 
 
@@ -80,4 +77,3 @@ int main() {
 }
 
 #endif
-