]> git.lyx.org Git - lyx.git/blobdiff - src/texrow.C
Oops...
[lyx.git] / src / texrow.C
index 80c198ea22edab134a9b2dd79d30856675a5a0af..80adc8463ee7c8b15332b48d73965b10b4a34bf8 100644 (file)
 
 #include <algorithm>
 
-#ifdef __GNUG__
-#pragma implementation
-#endif
-
 #include "texrow.h"
 #include "paragraph.h"
 #include "debug.h"
@@ -23,7 +19,7 @@ using std::for_each;
 using std::endl;
 
 namespace {
+
 /// function object returning true when row number is found
 class same_rownumber {
 public:
@@ -31,7 +27,7 @@ public:
        bool operator()(TexRow::RowList::value_type const & vt) const {
                return vt.rownumber() == row_;
        }
+
 private:
        int row_;
 };
@@ -48,7 +44,7 @@ public:
                if (vt.id() != id_ || vt.pos() >= pos_)
                        return;
                vt.pos(vt.pos() + 1);
+
                lyxerr[Debug::INFO]
                        << "TeXRow::increasePos: ideally this "
                        "should never happen..." << endl;
@@ -66,10 +62,10 @@ private:
        int id_;
        int pos_;
 };
-} // namespace anon 
 
+} // namespace anon
+
+
 void TexRow::reset()
 {
        rowlist.clear();
@@ -97,9 +93,9 @@ void TexRow::newline()
 bool TexRow::getIdFromRow(int row, int & id, int & pos) const
 {
        RowList::const_iterator cit =
-               find_if(rowlist.begin(), rowlist.end(), 
+               find_if(rowlist.begin(), rowlist.end(),
                        same_rownumber(row));
+
        if (cit != rowlist.end()) {
                id = cit->id();
                pos = cit->pos();