]> git.lyx.org Git - lyx.git/blobdiff - src/support/lyxstring.C
another safety belt
[lyx.git] / src / support / lyxstring.C
index 869451135e1705fca21a0f48627a925d828d78a1..73f2f67ceb48cc057102cfd52d86f12d6c7033e0 100644 (file)
@@ -1,12 +1,12 @@
-/* This file is part of
- * ======================================================
+/**
+ * \file lyxstring.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
  *
- *         Copyright 1995 Matthias Ettrich
- *          Copyright 1995-2000 The LyX Team.
- *
- * ====================================================== */
+ * Full author contact details are available in file CREDITS
+ */
 
 #ifdef HAVE_CONFIG_H
 #include <config.h>
@@ -665,7 +665,7 @@ lyxstring::const_reference lyxstring::operator[](size_type pos) const
 #if 0
        // This is actually what the standard requires,
        lyx::Assert(pos <= rep->sz); // OURS!
-       static char helper = '\0';
+       static char const helper = '\0';
        return pos == rep->sz ? helper : rep->s[pos];
 #else
        // but we use this one since it is stricter
@@ -1751,7 +1751,7 @@ istream & operator>>(istream & is, lyxstring & s)
                if (isspace(c)) {
                        if (!skipspace) {
                                is.putback(c);
-                               break; 
+                               break;
                        }
                } else {
                        s += c;