diff options
author | Tor Lillqvist <tml@iki.fi> | 2012-07-23 22:44:25 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2012-07-28 09:07:30 +0300 |
commit | 542f13cb4ed0662778cd72242894badd2c9337c7 (patch) | |
tree | f4481201bb88fa7fbef3927c045a0903d3f0c859 /fpicker | |
parent | 9e155f1d4d77ef269cce15f49e13108a7ca52b2a (diff) |
WaE: deprecations
Change-Id: Iadd6283d0441511d0824f013e731fdc023ab417b
Diffstat (limited to 'fpicker')
-rw-r--r-- | fpicker/source/aqua/SalAquaFilePicker.mm | 2 | ||||
-rw-r--r-- | fpicker/source/aqua/SalAquaPicker.mm | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/fpicker/source/aqua/SalAquaFilePicker.mm b/fpicker/source/aqua/SalAquaFilePicker.mm index 0e1a3cb87edf..25bd92389aa6 100644 --- a/fpicker/source/aqua/SalAquaFilePicker.mm +++ b/fpicker/source/aqua/SalAquaFilePicker.mm @@ -773,7 +773,9 @@ void SalAquaFilePicker::updateSaveFileNameExtension() { rtl::OUString suffix = (*(aStringList.begin())).copy(1); NSString *requiredFileType = [NSString stringWithOUString:suffix]; +#pragma GCC diagnostic warning "-Wdeprecated-declarations" [m_pDialog setRequiredFileType:requiredFileType]; +#pragma GCC diagnostic error "-Wdeprecated-declarations" OSL_TRACE("disallowing other file types"); [m_pDialog setAllowsOtherFileTypes:NO]; diff --git a/fpicker/source/aqua/SalAquaPicker.mm b/fpicker/source/aqua/SalAquaPicker.mm index 3829b70916dd..b29213866214 100644 --- a/fpicker/source/aqua/SalAquaPicker.mm +++ b/fpicker/source/aqua/SalAquaPicker.mm @@ -180,6 +180,7 @@ int SalAquaPicker::run() startDirectory = NSHomeDirectory(); } +#pragma GCC diagnostic warning "-Wdeprecated-declarations" switch(m_nDialogType) { case NAVIGATIONSERVICES_DIRECTORY: case NAVIGATIONSERVICES_OPEN: @@ -199,6 +200,7 @@ int SalAquaPicker::run() implsetDisplayDirectory([[NSURL fileURLWithPath:pDir] OUStringForInfo:FULLPATH]); } } +#pragma GCC diagnostic error "-Wdeprecated-declarations" DBG_PRINT_EXIT(CLASS_NAME, __func__, retVal); |