]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_write.C
my changes during the holidyas...i expect some compilers to have some problems, but...
[lyx.git] / src / mathed / math_write.C
index 97aa9a5071beb891dc914a256ce23656917905fd..959a5bcb7fb8115733dfabc0ebe1a6cef804ba80 100644 (file)
@@ -16,6 +16,7 @@
  */
 
 #include <config.h>
+
 #include "LString.h"
 #include "math_inset.h"
 #include "math_iter.h"
@@ -118,10 +119,10 @@ void MathDelimInset::Write(string & outf)
     } else {
         if (left == '{' || left == '}') {
            outf += '\\';
-           outf += (char) left;
+           outf += char(left);
            outf += ' ';
         } else {
-           outf += (char) left;
+           outf += char(left);
            outf += ' ';
         }
     }
@@ -134,10 +135,10 @@ void MathDelimInset::Write(string & outf)
    } else {
        if (right == '{' || right == '}') {
           outf += '\\';
-          outf += (char) right;
+          outf += char(right);
           outf += ' ';
       } else {
-          outf += (char) right;
+          outf += char(right);
           outf += ' ';
       }
    }        
@@ -197,7 +198,7 @@ void MathAccentInset::Write(string & outf)
            outf += ' ';
           }
       } else
-        outf += (char) c;
+        outf += char(c);
 
       if (fn>= LM_TC_RM && fn<= LM_TC_TEXTRM)
         outf += '}';
@@ -315,7 +316,7 @@ void MathParInset::Write(string & outf)
                       lyxerr <<"Math warning: Unexpected closing brace."
                              << endl;
               else            
-                outf += (char) *s;
+                outf += char(*s);
            }
            s++; ls--;
         }
@@ -397,7 +398,7 @@ void MathMatrixInset::Write(string & outf)
        outf += '}';
        if (v_align == 't' || v_align == 'b') {
            outf += '[';
-           outf += (char) v_align;
+           outf += char(v_align);
            outf += ']';
        }
        outf += '{';