Bug 1166741 followup: Guard GTK file-picker member-var decl/init statements with same #ifdef that its usages are guarded with, to avoid -Wunused-private-field warning. r=karlt

This commit is contained in:
Daniel Holbert 2015-05-26 22:40:28 -07:00
parent 69f8511757
commit 409ae858e5
2 changed files with 8 additions and 4 deletions

View File

@ -163,10 +163,12 @@ MakeCaseInsensitiveShellGlob(const char* aPattern) {
NS_IMPL_ISUPPORTS(nsFilePicker, nsIFilePicker)
nsFilePicker::nsFilePicker()
: mSelectedType(0),
mRunning(false),
mAllowURLs(false),
mFileChooserDelegate(nullptr)
: mSelectedType(0)
, mRunning(false)
, mAllowURLs(false)
#if (MOZ_WIDGET_GTK == 3)
, mFileChooserDelegate(nullptr)
#endif
{
}

View File

@ -74,7 +74,9 @@ protected:
private:
static nsIFile *mPrevDisplayDirectory;
#if (MOZ_WIDGET_GTK == 3)
GtkFileChooserWidget *mFileChooserDelegate;
#endif
};
#endif