]> git.lyx.org Git - lyx.git/blobdiff - src/tex-accent.C
Fix event loop to no longer eat CPU
[lyx.git] / src / tex-accent.C
index eb65f1df6a90a73c71e5a4988a0af36943dda4a0..ddfa1a7dfb8b8f87fdc229b5890fc170827eb512 100644 (file)
@@ -1,24 +1,22 @@
-/* This file is part of
- * ======================================================
+/**
+ * \file tex-accent.C
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- *           LyX, The Document Processor
+ * \author Lars Gullik Bjønnes
+ * \author Matthias Ettrich
  *
- *           Copyright 1995 Matthias Ettrich
- *           Copyright 1995-2001 The LyX Team.
- *
- * ====================================================== */
+ * Full author contact details are available in file CREDITS.
+ */
 
 #include <config.h>
 
-#ifdef __GNUG__
-#pragma implementation
-#endif
-
-#include <cstdlib>
 #include "tex-accent.h"
-#include "commandtags.h"
-#include "LString.h"
-#include "support/lstrings.h"
+#include "support/convert.h"
+
+#include <string>
+
+using std::string;
 
 /* the names used by TeX and XWindows for deadkeys/accents are not the same
    so here follows a table to clearify the differences. Please correct this
@@ -103,5 +101,5 @@ string const DoAccent(string const & s, tex_accent accent)
 
 string const DoAccent(char c, tex_accent accent)
 {
-       return DoAccent(tostr(c), accent);
+       return DoAccent(convert<string>(c), accent);
 }