[Libreoffice-commits] core.git: fpicker/source
Tor Lillqvist
tml at iki.fi
Sun Jun 16 13:27:05 PDT 2013
fpicker/source/aqua/FilterHelper.mm | 11 +----------
1 file changed, 1 insertion(+), 10 deletions(-)
New commits:
commit c22acb449fba8a5f0249e5da73ccad017d4ddb65
Author: Tor Lillqvist <tml at iki.fi>
Date: Sun Jun 16 23:22:29 2013 +0300
Don't use deprecated API
Change-Id: I1dfc8998eeeda31648a4b4fe95d40117686a866b
diff --git a/fpicker/source/aqua/FilterHelper.mm b/fpicker/source/aqua/FilterHelper.mm
index fd0e47b..3371730 100644
--- a/fpicker/source/aqua/FilterHelper.mm
+++ b/fpicker/source/aqua/FilterHelper.mm
@@ -375,11 +375,6 @@ throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::
DBG_PRINT_EXIT(CLASS_NAME, __func__);
}
-// 'fileAttributesAtPath:traverseLink:' is deprecated
-#if HAVE_GCC_PRAGMA_DIAGNOSTIC_MODIFY
-#pragma GCC diagnostic warning "-Wdeprecated-declarations"
-#endif
-
sal_Bool FilterHelper::filenameMatchesFilter(NSString* sFilename)
{
DBG_PRINT_ENTRY(CLASS_NAME, __func__);
@@ -390,7 +385,7 @@ sal_Bool FilterHelper::filenameMatchesFilter(NSString* sFilename)
}
NSFileManager *manager = [NSFileManager defaultManager];
- NSDictionary* pAttribs = [manager fileAttributesAtPath: sFilename traverseLink: NO];
+ NSDictionary* pAttribs = [manager attributesOfItemAtPath: sFilename error: nil];
if( pAttribs )
{
NSObject* pType = [pAttribs objectForKey: NSFileType];
@@ -436,10 +431,6 @@ sal_Bool FilterHelper::filenameMatchesFilter(NSString* sFilename)
return sal_False;
}
-#if HAVE_GCC_PRAGMA_DIAGNOSTIC_MODIFY
-#pragma GCC diagnostic error "-Wdeprecated-declarations"
-#endif
-
FilterList* FilterHelper::getFilterList() {
DBG_PRINT_ENTRY(CLASS_NAME, __func__);
DBG_PRINT_EXIT(CLASS_NAME, __func__);
More information about the Libreoffice-commits
mailing list