Try to placate the HP-UX compiler by keeping gFastLoadService_'s decl before any uses in a template class.

This commit is contained in:
brendan%mozilla.org 2001-07-31 23:23:38 +00:00
Родитель dbec3b7bc7
Коммит 88d548212c
1 изменённых файлов: 9 добавлений и 9 удалений

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

@ -41,6 +41,15 @@
#include "nsIFastLoadService.h"
#endif
/**
* nsFastLoadPtr is a template class, so we don't want a class static service
* pointer member declared in nsFastLoadPtr, above. Plus, we need special
* declaration magic to export data across DLL/DSO boundaries. So we use an
* old-fashioned global variable that refers weakly to the one true FastLoad
* service. This pointer is maintained by that singleton's ctor and dtor.
*/
PR_EXPORT_DATA(nsIFastLoadService*) gFastLoadService_;
template <class T>
class nsFastLoadPtr : public nsCOMPtr<T> {
public:
@ -80,13 +89,4 @@ class nsFastLoadPtr : public nsCOMPtr<T> {
}
};
/**
* nsFastLoadPtr is a template class, so we don't want a class static service
* pointer member declared in nsFastLoadPtr, above. Plus, we need special
* declaration magic to export data across DLL/DSO boundaries. So we use an
* old-fashioned global variable that refers weakly to the one true FastLoad
* service. This pointer is maintained by that singleton's ctor and dtor.
*/
PR_EXPORT_DATA(nsIFastLoadService*) gFastLoadService_;
#endif // nsFastLoadPtr_h___