fix warnings by providing empty virtual destructors for classes that needed them, reordering initialization of member variables, and by giving the type uint to all the 'const nFooTypes;' variables.

git-svn-id: svn://10.0.0.236/trunk@16148 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
toshok%hungry.com
1998-12-10 11:52:47 +00:00
parent 70f4e55bd6
commit aef3a93e3a
11 changed files with 24 additions and 18 deletions

View File

@@ -42,8 +42,8 @@ enum TypeKind
tkArray, // 4 no sometimes // Java arrays
tkInterface // 4 no no // Java interfaces
};
const nPrimitiveTypeKinds = tkDouble + 1;
const nTypeKinds = tkInterface + 1;
const uint nPrimitiveTypeKinds = tkDouble + 1;
const uint nTypeKinds = tkInterface + 1;
inline bool NS_EXTERN isPrimitiveKind(TypeKind tk) {return tk <= tkDouble;}
inline bool NS_EXTERN isNonVoidPrimitiveKind(TypeKind tk) {return tk >= tkBoolean && tk <= tkDouble;}
@@ -571,14 +571,14 @@ enum StandardClass {
cString, // java.lang.String
cInterruptedException // java.lang.InterruptedException
};
const nStandardClasses = cString + 1;
const firstOrdinaryStandardClass = cThrowable;
const uint nStandardClasses = cString + 1;
const uint firstOrdinaryStandardClass = cThrowable;
// Standard interfaces
enum StandardInterface {
iCloneable // java.lang.Cloneable
};
const nStandardInterfaces = iCloneable + 1;
const uint nStandardInterfaces = iCloneable + 1;
// Standard objects
@@ -592,7 +592,7 @@ enum StandardObject {
oNullPointerException, // new java.lang.NullPointerException()
oInterruptedException // new java.lang.InterruptedException()
};
const nStandardObjects = oNullPointerException + 1;
const uint nStandardObjects = oNullPointerException + 1;
class NS_EXTERN Standard