]> git.lyx.org Git - features.git/commitdiff
small Paragraph* -> ParagraphList::iterator
authorAndré Pönitz <poenitz@gmx.net>
Fri, 2 May 2003 10:06:07 +0000 (10:06 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Fri, 2 May 2003 10:06:07 +0000 (10:06 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6921 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/buffer.C
src/buffer.h
src/insets/ChangeLog
src/insets/insettext.C

index f522dc55c05da4efca617270d5bee3427a2e0e07..d6dbb084ea27613ac06275bce6393d8b53224578 100644 (file)
@@ -1,3 +1,8 @@
+
+2003-05-02 André Pönitz <poenitz@gmx.net>
+
+       * buffer.[Ch]: one instance of Paragraph * ->  ParagraphList::iterator
+
 2003-05-02  Lars Gullik Bjønnes  <larsbj@gullik.net>
 
        * undo_funcs.C: almost only ws changes.
index 3e1841f0e39e2799afde65f34200f37be0277b99..6ff34b45fedf0b72aafc077dbfbc4a301bd2041f 100644 (file)
@@ -1319,7 +1319,7 @@ void Buffer::makeLinuxDocFile(string const & fname, bool nice, bool body_only)
                        break;
                }
 
-               simpleLinuxDocOnePar(ofs, &*pit, depth);
+               simpleLinuxDocOnePar(ofs, pit, depth);
 
                ofs << "\n";
                // write closing SGML tags
@@ -1412,8 +1412,8 @@ void reset(PAR_TAG & p1, PAR_TAG const & p2)
 
 // Handle internal paragraph parsing -- layout already processed.
 void Buffer::simpleLinuxDocOnePar(ostream & os,
-       Paragraph * par,
-       Paragraph::depth_type /*depth*/)
+       ParagraphList::iterator par,
+       Paragraph::depth_type /*depth*/) const
 {
        LyXLayout_ptr const & style = par->layout();
 
index bc352c1d238e45c0900e10d5a4969476dbfaba19..24bd723d3fc9b7f187ede32b9ffdc82282cb4292 100644 (file)
@@ -156,10 +156,11 @@ public:
        ///
        void simpleDocBookOnePar(std::ostream &,
                                 ParagraphList::iterator par, int & desc_on,
-                                Paragraph::depth_type depth) const ;
+                                Paragraph::depth_type depth) const;
        ///
-       void simpleLinuxDocOnePar(std::ostream & os, Paragraph * par,
-                                 Paragraph::depth_type depth);
+       void simpleLinuxDocOnePar(std::ostream & os,
+              ParagraphList::iterator par,
+                                Paragraph::depth_type depth) const;
        ///
        void makeLinuxDocFile(string const & filename,
                              bool nice, bool only_body = false);
index f350f1ed309baa0f0198b9025756a8ec881dce3d..6dc4d6d5183cf79e61983159d680a9dbded0dfa0 100644 (file)
@@ -1,3 +1,7 @@
+2003-05-02 André Pönitz <poenitz@gmx.net>
+
+       * insettext.C: remove unneeded &*
+
 2003-04-30  John Levon  <levon@movementarian.org>
 
        * insettabular.C: fix edit message
index 518deff3d1c4c1adc993886069f18d0dabdf5af2..5fad75dc9270130c598b45a8b8272a9e18d35dba 100644 (file)
@@ -1637,7 +1637,7 @@ int InsetText::docbook(Buffer const * buf, ostream & os, bool mixcont) const
                        break;
                }
 
-               buf->simpleDocBookOnePar(os, &*pit, desc_on, depth + 1 + command_depth);
+               buf->simpleDocBookOnePar(os, pit, desc_on, depth + 1 + command_depth);
 
                string end_tag;
                // write closing SGML tags