fix for 65897 (fixes annoying warning in nsIStyleSet.h) r=saari, sr=waterson

This commit is contained in:
dr%netscape.com 2001-01-24 01:36:03 +00:00
parent d52027c46e
commit 1dbdc070e6

View File

@ -302,9 +302,9 @@ protected:
static nsUniqueStyleItems *mInstance;
};
#define UNIQUE_STYLE_ITEMS(_name) \
nsUniqueStyleItems* ##_name = nsUniqueStyleItems::GetUniqueStyleItems(); \
NS_ASSERTION(##_name != nsnull, "UniqueItems cannot be null: error in nsUniqueStyleImtes factory");
#define UNIQUE_STYLE_ITEMS(__ptr) \
nsUniqueStyleItems* __ptr = nsUniqueStyleItems::GetUniqueStyleItems(); \
NS_ASSERTION(__ptr != nsnull, "UniqueItems cannot be null: error in nsUniqueStyleItems factory");
/** a simple struct (that may someday be expanded)
* that contains data supplied by the caller to help