]> git.lyx.org Git - lyx.git/commitdiff
Declare stuff with a constructor as "class Foo" rather than "struct Foo".
authorAngus Leeming <leeming@lyx.org>
Fri, 25 Feb 2005 22:13:13 +0000 (22:13 +0000)
committerAngus Leeming <leeming@lyx.org>
Fri, 25 Feb 2005 22:13:13 +0000 (22:13 +0000)
Nonsense to keep MSVC happy.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9684 a592a061-630c-0410-9148-cb99ea01b6c8

src/tex2lyx/ChangeLog
src/tex2lyx/context.h
src/tex2lyx/table.C

index c113b3de3de3936f3eb019b548632edb7c7e41d1..e8d9de17cf9fb75a0d4cbdb853f0dde0d0594285 100644 (file)
@@ -1,3 +1,13 @@
+2005-02-25  Angus Leeming  <leeming@lyx.org>
+
+       * context.h: declare as "class Font" rather than "struct Font".
+       Ditto "class Context".
+
+       * table.C: declare as "class ColInfo" rather than "struct ColInfo".
+       Ditto "class RowInfo" and "class CellInfo".
+
+       Changes to make MSVC agree to link the code.
+
 2005-02-05  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
 
        * context.C (begin_deeper, end_deeper): adjust output to LyX
index a4fd4a916a54d8e3070f0475f66279011b22d89c..29be22ffb2bdbcf91360ecfa97b389229fb49370 100644 (file)
@@ -23,7 +23,8 @@
  * If more font related stuff is needed, it might be good to change to
  * LyXFont.
  */
-struct Font {
+class Font {
+public:
        Font()
        {
                init();
@@ -43,7 +44,8 @@ struct Font {
 
 
 // A helper struct
-struct Context {
+class Context {
+public:
        Context(bool need_layout_,
                LyXTextClass const & textclass_,
                LyXLayout_ptr layout_ = LyXLayout_ptr(),
@@ -106,5 +108,4 @@ struct Context {
        Font font;
 };
 
-
 #endif
index 4cc1d08021dbb372a7e8ac99d41e4fa41942a382..a7e5b606a1defb6590058be7ba464080e367e63d 100644 (file)
@@ -38,8 +38,8 @@ std::map<char, int> special_columns;
 
 namespace {
 
-struct ColInfo
-{
+class ColInfo {
+public:
        ColInfo() : align('c'), rightline(false), leftline(false) {}
        /// column alignment
        char align;
@@ -70,8 +70,8 @@ enum LTRowType
 };
 
 
-struct RowInfo
-{
+class RowInfo {
+public:
        RowInfo() : topline(false), bottomline(false), type(LT_NORMAL),
                    newpage(false) {}
        /// horizontal line above
@@ -86,8 +86,8 @@ struct RowInfo
 };
 
 
-struct CellInfo
-{
+class CellInfo {
+public:
        CellInfo() : multi(0), align('n'), leftline(false), rightline(false),
                     topline(false), bottomline(false) {}
        /// cell content