]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_exfuncinset.C
fix build, thesaurus
[lyx.git] / src / mathed / math_exfuncinset.C
index 7882daa993cecbde9a9e483603bb633725ed468d..10175f52c9551e3c4087eb4665a5173f4a93ce1b 100644 (file)
@@ -1,16 +1,14 @@
+#include <config.h>
+
 #include "math_exfuncinset.h"
 #include "math_support.h"
 #include "math_mathmlstream.h"
+#include "math_streamstr.h"
 
 
-using std::ostream;
-
-
-MathExFuncInset::MathExFuncInset(string const & name, MathArray const & arg)
+MathExFuncInset::MathExFuncInset(string const & name)
        : MathNestInset(1), name_(name)
-{
-       cell(0) = arg;
-}
+{}
 
 
 MathInset * MathExFuncInset::clone() const
@@ -34,13 +32,13 @@ void MathExFuncInset::draw(Painter & pain, int x, int y) const
 
 void MathExFuncInset::normalize(NormalStream & os) const
 {
-       os << '[' << name_.c_str() << ' ' << cell(0) << ']';
+       os << '[' << name_ << ' ' << cell(0) << ']';
 }
 
 
 void MathExFuncInset::maplize(MapleStream & os) const
 {
-       os << name_.c_str() << '(' << cell(0) << ')';
+       os << name_ << '(' << cell(0) << ')';
 }
 
 
@@ -52,13 +50,13 @@ void MathExFuncInset::mathmlize(MathMLStream & os) const
 
 void MathExFuncInset::octavize(OctaveStream & os) const
 {
-       os << name_.c_str() << '(' << cell(0) << ')';
+       os << name_ << '(' << cell(0) << ')';
 }
 
 
 void MathExFuncInset::write(WriteStream & os) const
 {
-       os << '\\' << name_.c_str() << '{' << cell(0) << '}';
+       os << '\\' << name_ << '{' << cell(0) << '}';
 }