]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_macrotable.C
Fix to bug 2362: Deleting superscript also deletes subscript.
[lyx.git] / src / mathed / math_macrotable.C
index fe5d668965b65fc51286976ac90942144a1bb0ac..f7bb45efcb5c3aa099dfdb255f10dbfde3dd1364 100644 (file)
 #include "debug.h"
 #include "dociterator.h"
 
-#include "support/std_sstream.h"
-
 #include <boost/assert.hpp>
 
+#include <sstream>
+
 using std::endl;
 using std::istringstream;
 using std::map;
 using std::pair;
 using std::string;
 using std::vector;
+using std::size_t;
 
 
-MacroData::MacroData() 
+MacroData::MacroData()
        : numargs_(0)
 {}
 
@@ -54,7 +55,7 @@ void MacroData::expand(vector<MathArray> const & args, MathArray & to) const
                        continue;
                //it.cell().erase(it.pos());
                //it.cell().insert(it.pos(), it.nextInset()->asMathInset()
-               int n = static_cast<MathMacroArgument*>(it.nextInset())->number();
+               size_t n = static_cast<MathMacroArgument*>(it.nextInset())->number();
                if (n <= args.size()) {
                        it.cell().erase(it.pos());
                        it.cell().insert(it.pos(), args[n - 1]);
@@ -65,7 +66,6 @@ void MacroData::expand(vector<MathArray> const & args, MathArray & to) const
 }
 
 
-
 // The global table.
 MacroTable & MacroTable::globalMacros()
 {