Fix build bustage with some g++ versions by not having a curly after NS_HIDDEN

for a constructor.  Bug 387218, r=dmose, sr=biesi
This commit is contained in:
bzbarsky@mit.edu 2007-07-08 19:22:01 -07:00
parent 3fd12bebbb
commit c73572927d
2 changed files with 17 additions and 3 deletions

View File

@ -42,6 +42,20 @@
// XXX why does nsMIMEInfoImpl have a threadsafe nsISupports? do we need one
// here too?
nsHandlerAppBase::nsHandlerAppBase()
{
}
nsHandlerAppBase::nsHandlerAppBase(const PRUnichar *aName)
: mName(aName)
{
}
nsHandlerAppBase::nsHandlerAppBase(const nsAString & aName)
: mName(aName)
{
}
NS_IMPL_ISUPPORTS1(nsHandlerAppBase, nsIHandlerApp)
/* AString name; */

View File

@ -50,9 +50,9 @@ public:
NS_DECL_ISUPPORTS
NS_DECL_NSIHANDLERAPP
nsHandlerAppBase() NS_HIDDEN {}
nsHandlerAppBase(const PRUnichar *aName) NS_HIDDEN { mName.Assign(aName); }
nsHandlerAppBase(const nsAString & aName) NS_HIDDEN { mName.Assign(aName); }
nsHandlerAppBase() NS_HIDDEN;
nsHandlerAppBase(const PRUnichar *aName) NS_HIDDEN;
nsHandlerAppBase(const nsAString & aName) NS_HIDDEN;
virtual ~nsHandlerAppBase() {}
protected: