commit a8b0e64094bd4c2cb878a70ffd5e3e9d175809a8
Author: Juergen Spitzmueller <[email protected]>
Date:   Sat Jul 28 10:26:52 2018 +0200

    Try to please windows compiler
---
 src/insets/InsetTabular.cpp  |    4 ++--
 src/mathed/InsetMathHull.cpp |   16 ++++++++--------
 2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp
index f1cf912..324987c 100644
--- a/src/insets/InsetTabular.cpp
+++ b/src/insets/InsetTabular.cpp
@@ -6572,12 +6572,12 @@ void InsetTabular::getSelection(Cursor & cur,
        cs = tabular.cellColumn(beg.idx());
        ce = tabular.cellColumn(end.idx());
        if (cs > ce)
-               swap(cs, ce);
+               std::swap(cs, ce);
 
        rs = tabular.cellRow(beg.idx());
        re = tabular.cellRow(end.idx());
        if (rs > re)
-               swap(rs, re);
+               std::swap(rs, re);
 }
 
 
diff --git a/src/mathed/InsetMathHull.cpp b/src/mathed/InsetMathHull.cpp
index 61d078a..dffef84 100644
--- a/src/mathed/InsetMathHull.cpp
+++ b/src/mathed/InsetMathHull.cpp
@@ -1295,8 +1295,8 @@ void InsetMathHull::addRow(row_type row)
        if (type_ == hullMultline) {
                if (row + 1 == nrows())  {
                        numbered_[row] = NONUMBER;
-                       swap(label, label_[row]);
-                       swap(number, numbers_[row]);
+                       std::swap(label, label_[row]);
+                       std::swap(number, numbers_[row]);
                } else
                        numbered = false;
        }
@@ -1314,9 +1314,9 @@ void InsetMathHull::swapRow(row_type row)
                return;
        if (row + 1 == nrows())
                --row;
-       swap(numbered_[row], numbered_[row + 1]);
-       swap(numbers_[row], numbers_[row + 1]);
-       swap(label_[row], label_[row + 1]);
+       std::swap(numbered_[row], numbered_[row + 1]);
+       std::swap(numbers_[row], numbers_[row + 1]);
+       std::swap(label_[row], label_[row + 1]);
        InsetMathGrid::swapRow(row);
 }
 
@@ -1326,9 +1326,9 @@ void InsetMathHull::delRow(row_type row)
        if (nrows() <= 1 || !rowChangeOK())
                return;
        if (row + 1 == nrows() && type_ == hullMultline) {
-               swap(numbered_[row - 1], numbered_[row]);
-               swap(numbers_[row - 1], numbers_[row]);
-               swap(label_[row - 1], label_[row]);
+               std::swap(numbered_[row - 1], numbered_[row]);
+               std::swap(numbers_[row - 1], numbers_[row]);
+               std::swap(label_[row - 1], label_[row]);
                InsetMathGrid::delRow(row);
                return;
        }

Reply via email to