зеркало из https://github.com/mozilla/gecko-dev.git
Try to placate the HP-UX compiler by keeping gFastLoadService_'s decl before any uses in a template class.
This commit is contained in:
Родитель
dbec3b7bc7
Коммит
88d548212c
|
@ -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___
|
||||
|
|
Загрузка…
Ссылка в новой задаче