From ab9de435b4083c53f60cb89f7b27c4c340db7551 Mon Sep 17 00:00:00 2001 From: Stephan Witt Date: Tue, 21 Dec 2010 15:28:55 +0000 Subject: [PATCH] fix typo: double semicolon at line end of code git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36985 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/Cursor.cpp | 2 +- src/frontends/qt4/GuiLine.cpp | 2 +- src/mathed/InsetMathGrid.cpp | 8 ++++---- src/mathed/InsetMathString.cpp | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Cursor.cpp b/src/Cursor.cpp index d504670fa7..e08793c393 100644 --- a/src/Cursor.cpp +++ b/src/Cursor.cpp @@ -154,7 +154,7 @@ bool bruteFind(Cursor & cursor, else ++et.pit(); - double best_dist = numeric_limits::max();; + double best_dist = numeric_limits::max(); DocIterator best_cursor = et; for ( ; it != et; it.forwardPos(true)) { diff --git a/src/frontends/qt4/GuiLine.cpp b/src/frontends/qt4/GuiLine.cpp index fee2bdf193..4ab2da8c94 100644 --- a/src/frontends/qt4/GuiLine.cpp +++ b/src/frontends/qt4/GuiLine.cpp @@ -73,7 +73,7 @@ GuiLine::GuiLine(QWidget * parent) : InsetParamsWidget(parent) docstring GuiLine::dialogToParams() const { InsetCommandParams params(insetCode()); - params["offset"] = from_utf8(widgetsToLength(OffsetLE, OffsetUnitCO));; + params["offset"] = from_utf8(widgetsToLength(OffsetLE, OffsetUnitCO)); params["width"] = from_utf8(widgetsToLength(WidthLE, WidthUnitCO)); params["height"] = from_utf8(widgetsToLength(HeightLE, HeightUnitCO)); params.setCmdName("rule"); diff --git a/src/mathed/InsetMathGrid.cpp b/src/mathed/InsetMathGrid.cpp index 86e923a80c..163c6e61e6 100644 --- a/src/mathed/InsetMathGrid.cpp +++ b/src/mathed/InsetMathGrid.cpp @@ -986,14 +986,14 @@ void InsetMathGrid::mathmlize(MathStream & os) const char const * const celltag = havetable ? "mtd" : "mrow"; for (row_type row = 0; row < nrows(); ++row) { if (havetable) - os << MTag("mtr");; + os << MTag("mtr"); for (col_type col = 0; col < ncols(); ++col) { os << MTag(celltag); os << cell(index(row, col)); os << ETag(celltag); } if (havetable) - os << ETag("mtr");; + os << ETag("mtr"); } if (havetable) os << ETag("mtable"); @@ -1011,13 +1011,13 @@ void InsetMathGrid::htmlize(HtmlStream & os, string attrib) const } os << MTag("table", attrib); for (row_type row = 0; row < nrows(); ++row) { - os << MTag("tr");; + os << MTag("tr"); for (col_type col = 0; col < ncols(); ++col) { os << MTag("td"); os << cell(index(row, col)); os << ETag("td"); } - os << ETag("tr");; + os << ETag("tr"); } os << ETag("table"); } diff --git a/src/mathed/InsetMathString.cpp b/src/mathed/InsetMathString.cpp index d5b0d78864..98b641a726 100644 --- a/src/mathed/InsetMathString.cpp +++ b/src/mathed/InsetMathString.cpp @@ -166,7 +166,7 @@ void InsetMathString::write(WriteStream & os) const } case WriteStream::wsPreview: { // indicate the encoding error by a boxed '?' - os << "{\\fboxsep=1pt\\fbox{?}}";; + os << "{\\fboxsep=1pt\\fbox{?}}"; LYXERR0("Uncodable character" << " '" << docstring(1, e.failed_char) << "'"); -- 2.39.5