static PRBool initialized = 0; if ( !initialized ) { kIdAtom       = NS_NewAtom("id"); kCommandAtom  = NS_NewAtom("command"); kFileNameAtom = NS_NewAtom("filename"); initialized = 1; }
nsFileDownloadDialog::nsFileDownloadDialog( nsIURL *aURL, const char *aContentType )        : mUrl( nsDontQueryInterface<nsIURL>(aURL) ),          mWebShell(),          mWindow(),          mOutput(0),          mBufLen( 8192 ),          mBuffer( new char[ mBufLen ] ),          mStopped( PR_FALSE ),          mContentType( aContentType ),          mMode( kPrompt ) {    // Initialize ref count.    NS_INIT_REFCNT();    // Initialize static atoms.    static PRBool initialized = 0;    if ( !initialized ) {        kIdAtom       = NS_NewAtom("id");        kCommandAtom  = NS_NewAtom("command");        kFileNameAtom = NS_NewAtom("filename");        initialized = 1;    }}