This commit is contained in:
mkaply%us.ibm.com 2001-10-24 19:12:02 +00:00
Родитель dc4374766a
Коммит 48030d96bb
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -535,7 +535,7 @@ public:
* @see nsISupports#Release() * @see nsISupports#Release()
*/ */
nsresult GetStyleContext(nsIStyleContext** aStyleContext) const { nsresult GetStyleContext(nsIStyleContext** aStyleContext) const {
NS_IF_ADDREF(mStyleContext); *aStyleContext = mStyleContext; return NS_OK; *aStyleContext = mStyleContext; NS_IF_ADDREF(*aStyleContext); return NS_OK;
} }
nsresult SetStyleContext(nsIPresContext* aPresContext, nsIStyleContext* aContext) { nsresult SetStyleContext(nsIPresContext* aPresContext, nsIStyleContext* aContext) {
if (aContext != mStyleContext) { if (aContext != mStyleContext) {

Просмотреть файл

@ -535,7 +535,7 @@ public:
* @see nsISupports#Release() * @see nsISupports#Release()
*/ */
nsresult GetStyleContext(nsIStyleContext** aStyleContext) const { nsresult GetStyleContext(nsIStyleContext** aStyleContext) const {
NS_IF_ADDREF(mStyleContext); *aStyleContext = mStyleContext; return NS_OK; *aStyleContext = mStyleContext; NS_IF_ADDREF(*aStyleContext); return NS_OK;
} }
nsresult SetStyleContext(nsIPresContext* aPresContext, nsIStyleContext* aContext) { nsresult SetStyleContext(nsIPresContext* aPresContext, nsIStyleContext* aContext) {
if (aContext != mStyleContext) { if (aContext != mStyleContext) {