diff options
author | Juergen Schmidt <jsc@openoffice.org> | 2001-03-14 11:03:58 +0000 |
---|---|---|
committer | Juergen Schmidt <jsc@openoffice.org> | 2001-03-14 11:03:58 +0000 |
commit | 04441091d3aa27126294c2291ca472e260c3bc3d (patch) | |
tree | 5a19501b22a616605867a2bad9177411cf9bbe24 /codemaker | |
parent | b580037e7925f5740af5c300d6843c97f2842ede (diff) |
change enum value counter
Diffstat (limited to 'codemaker')
-rw-r--r-- | codemaker/source/cppumaker/cpputype.cxx | 6 | ||||
-rw-r--r-- | codemaker/source/javamaker/javatype.cxx | 8 |
2 files changed, 8 insertions, 6 deletions
diff --git a/codemaker/source/cppumaker/cpputype.cxx b/codemaker/source/cppumaker/cpputype.cxx index b0e64d0f799f..cc201b17a77f 100644 --- a/codemaker/source/cppumaker/cpputype.cxx +++ b/codemaker/source/cppumaker/cpputype.cxx @@ -2,9 +2,9 @@ * * $RCSfile: cpputype.cxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: jsc $ $Date: 2001-03-13 12:04:24 $ + * last change: $Author: jsc $ $Date: 2001-03-14 12:00:16 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -3505,7 +3505,7 @@ sal_Bool EnumType::dumpDeclaration(FileStream& o) RTFieldAccess access = RT_ACCESS_INVALID; RTConstValue constValue; OString fieldName; - sal_uInt32 value=0; + sal_Int32 value=0; for (sal_uInt16 i=0; i < fieldCount; i++) { access = m_reader.getFieldAccess(i); diff --git a/codemaker/source/javamaker/javatype.cxx b/codemaker/source/javamaker/javatype.cxx index 112f047bd9a2..522f1dbd7733 100644 --- a/codemaker/source/javamaker/javatype.cxx +++ b/codemaker/source/javamaker/javatype.cxx @@ -2,9 +2,9 @@ * * $RCSfile: javatype.cxx,v $ * - * $Revision: 1.6 $ + * $Revision: 1.7 $ * - * last change: $Author: kr $ $Date: 2001-03-14 09:49:51 $ + * last change: $Author: jsc $ $Date: 2001-03-14 12:03:58 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1759,7 +1759,7 @@ sal_Bool EnumType::dumpFile(FileStream& o) constValue = m_reader.getFieldConstValue(i); if (constValue.m_type == RT_TYPE_INT32) - value = (sal_Int32)constValue.m_value.aLong; + value = constValue.m_value.aLong; else value++; @@ -1772,6 +1772,8 @@ sal_Bool EnumType::dumpFile(FileStream& o) inc(); o << indent() << "switch( value )\n" << indent() << "{\n"; inc(); + + value = 0; for (i=0; i < fieldCount; i++) { access = m_reader.getFieldAccess(i); |