]> git.lyx.org Git - features.git/commitdiff
fix some C++ parsing bugs
authorLars Gullik Bjønnes <larsbj@gullik.org>
Thu, 27 Mar 2003 17:38:24 +0000 (17:38 +0000)
committerLars Gullik Bjønnes <larsbj@gullik.org>
Thu, 27 Mar 2003 17:38:24 +0000 (17:38 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6598 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/frontends/controllers/ChangeLog
src/frontends/controllers/ControlDialog.tmpl
src/lyxgluelength.h
src/lyxlength.h
src/text2.C

index bdd165f173e0b0233817dab8ee94ee976d88995d..3702f31795bbb62d3eb6437024a66f2d332c083d 100644 (file)
@@ -1,5 +1,11 @@
 2003-03-27  Lars Gullik Bjønnes  <larsbj@gullik.net>
 
+       * lyxgluelength.h (isValidGlueLength): add default arg on
+       parameter 2. Remove default arg from friend in class.
+
+       * lyxlength.h (isValidLength): add default arg on parameter 2.
+       Remove default arg from friend in class.
+
        * text2.C (LyXText): adjust, initialize refresh_row.
        (init): adjust
        (removeRow): adjust
index 1b3528311eafc2f999046f380d7612655205a16e..6124fefb86e3f09b9d83a3553780b670017ebd9d 100644 (file)
@@ -1,3 +1,9 @@
+2003-03-27  Lars Gullik Bjønnes  <larsbj@gullik.net>
+
+       * ControlDialog.tmpl (show): qualify emergency_exit_ with this->
+       (update): ditto
+       (hide): ditto
+
 2003-03-26  Angus Leeming  <leeming@lyx.org>
 
        * ControlThesaurus.[Ch]: rewrite to use the Dialog-based scheme.
        * ControlConnections.C: temporary renaming of Dialogs::signals.
 
        * Makefile.am: add new files.
-       
+
 2003-02-21  Angus Leeming  <leeming@lyx.org>
 
        * ControlBibtex.C (Browse):
        browse, browsedir):
        * ControlPrint.C (Browse):
        don't pass a LyXView & to browseFile et al.
-       * helper_funcs.[Ch] (browseFile, browseRelFile, browseDir): 
+       * helper_funcs.[Ch] (browseFile, browseRelFile, browseDir):
        don't pass a LyXView & to fileDlg.
 
 2003-02-17  John Levon  <levon@movementarian.org>
 2003-01-11  Juergen Spitzmueller  <j.spitzmueller@gmx.de>
 
        * helper_funcs.[Ch]: implement browseDir (browse directory) [bug 824]
-       
+
        * ControlPrefs.[Ch]: implement browsedir for the use of use browseDir.
 
 2002-12-02  Lars Gullik Bjønnes  <larsbj@gullik.net>
index 8777673d71c629f24f85a71c46eef9bb104f928b..7135ac56f297250ce3d7456b30e330cb236075c2 100644 (file)
@@ -38,7 +38,7 @@ void ControlDialog<Base>::show()
        }
 
        setParams();
-       if (emergency_exit_) {
+       if (this->emergency_exit_) {
                hide();
                return;
        }
@@ -57,7 +57,7 @@ void ControlDialog<Base>::update()
                return;
 
        setParams();
-       if (emergency_exit_) {
+       if (this->emergency_exit_) {
                hide();
                return;
        }
@@ -72,7 +72,7 @@ void ControlDialog<Base>::update()
 template <class Base>
 void ControlDialog<Base>::hide()
 {
-       emergency_exit_ = false;
+       this->emergency_exit_ = false;
        clearParams();
 
        disconnect();
index 8cd08966e4d4be3429e22eb5851b766f42b3ee1b..77c53ec0d37b52a9b1c1175e9e7275ec42aeebdd 100644 (file)
@@ -48,11 +48,8 @@ public:
        ///
        string const asLatexString() const;
 
-
-       /** If "data" is valid, the length represented by it is
-         stored into "result", if that is not 0. */
        friend bool isValidGlueLength(string const & data,
-                                     LyXGlueLength* result = 0);
+                                     LyXGlueLength* result);
 
 private:
        /// the normal vlaue
@@ -67,7 +64,8 @@ private:
 bool operator==(LyXGlueLength const & l1, LyXGlueLength const & l2);
 ///
 bool operator!=(LyXGlueLength const & l1, LyXGlueLength const & l2);
-///
-bool isValidGlueLength(string const & data, LyXGlueLength * result);
+/** If "data" is valid, the length represented by it is
+    stored into "result", if that is not 0. */
+bool isValidGlueLength(string const & data, LyXGlueLength * result = 0);
 
 #endif // LYXGLUELENGTH_H
index fa1d1a1eb369642831c5a588d5cef8d65b9ac135..d64c93fbbc438f9caf08fd0444b3fc6a90c301df 100644 (file)
@@ -70,9 +70,7 @@ public:
        /// return the on-screen size of this length of an image
        int inBP() const;
 
-       /** If "data" is valid, the length represented by it is
-         stored into "result", if that is not 0. */
-       friend bool isValidLength(string const & data, LyXLength * result = 0);
+       friend bool isValidLength(string const & data, LyXLength * result);
 
 private:
        ///
@@ -85,8 +83,9 @@ private:
 bool operator==(LyXLength const & l1, LyXLength const & l2);
 ///
 bool operator!=(LyXLength const & l1, LyXLength const & l2);
-///
-bool isValidLength(string const & data, LyXLength * result);
+/** If "data" is valid, the length represented by it is
+    stored into "result", if that is not 0. */
+bool isValidLength(string const & data, LyXLength * result = 0);
 /// return the name of the given unit number
 char const * stringFromUnit(int unit);
 
index b5a5689573df512dd7785ee2324b219f40dbb84d..2f83d8679761970a259f82512fce01bce3fa6dc4 100644 (file)
@@ -2318,7 +2318,6 @@ bool LyXText::deleteEmptyParagraphMechanism(LyXCursor const & old_cursor)
                                }
                                setHeightOfRow(refresh_row);
                        }
-
                } else {
                        Row * nextrow = old_cursor.row()->next();
                        const_cast<LyXText *>(this)->postPaint(