diff options
author | Tor Lillqvist <tml@iki.fi> | 2013-06-18 23:19:28 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2013-06-19 02:28:30 +0300 |
commit | 4286070ec53985a80d92cbba647c28133ce89158 (patch) | |
tree | b34f1f62fc4f29640e46089ea7388c1f578ea70c /fpicker | |
parent | 9c42545be17b44d3af9aa4b7efa35c5121310e4a (diff) |
Avoid deprecated API
Change-Id: I2537721bd6b0214c25590504751c39fb4661e2fe
Diffstat (limited to 'fpicker')
-rw-r--r-- | fpicker/source/aqua/SalAquaFilePicker.mm | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/fpicker/source/aqua/SalAquaFilePicker.mm b/fpicker/source/aqua/SalAquaFilePicker.mm index e64c4225c5ba..b8241dc3f673 100644 --- a/fpicker/source/aqua/SalAquaFilePicker.mm +++ b/fpicker/source/aqua/SalAquaFilePicker.mm @@ -743,14 +743,7 @@ void SalAquaFilePicker::updateSaveFileNameExtension() { rtl::OUString suffix = (*(aStringList.begin())).copy(1); NSString *requiredFileType = [NSString stringWithOUString:suffix]; -#if HAVE_GCC_PRAGMA_DIAGNOSTIC_MODIFY && HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE -#pragma GCC diagnostic push -#pragma GCC diagnostic warning "-Wdeprecated-declarations" -#endif - [m_pDialog setRequiredFileType:requiredFileType]; -#if HAVE_GCC_PRAGMA_DIAGNOSTIC_MODIFY && HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE -#pragma GCC diagnostic pop -#endif + [m_pDialog setAllowedFileTypes:[NSArray arrayWithObjects:requiredFileType, nil]]; OSL_TRACE("disallowing other file types"); [m_pDialog setAllowsOtherFileTypes:NO]; |