[Libreoffice-commits] .: extensions/source

Michael Stahl mst at kemper.freedesktop.org
Wed Jan 4 12:10:30 PST 2012


 extensions/source/macosx/spotlight/GetMetadataForFile.m |    3 ++-
 extensions/source/macosx/spotlight/main.m               |    3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

New commits:
commit f8bd56a2e2d0987326e2ed02e66e4bfa8fa3ec28
Author: Michael Stahl <mstahl at redhat.com>
Date:   Wed Jan 4 21:08:40 2012 +0100

    extensions: cast unused parameters to void

diff --git a/extensions/source/macosx/spotlight/GetMetadataForFile.m b/extensions/source/macosx/spotlight/GetMetadataForFile.m
index f93449a..0702ef0 100644
--- a/extensions/source/macosx/spotlight/GetMetadataForFile.m
+++ b/extensions/source/macosx/spotlight/GetMetadataForFile.m
@@ -48,11 +48,12 @@ typedef int NSColorRenderingIntent;
    and return it as a dictionary
    ----------------------------------------------------------------------------- */
 
-Boolean GetMetadataForFile(void* /*thisInterface*/,
+Boolean GetMetadataForFile(void* thisInterface,
 			   CFMutableDictionaryRef attributes, 
 			   CFStringRef contentTypeUTI,
 			   CFStringRef pathToFile)
 {
+    (void) thisInterface; /* unused */
     /* Pull any available metadata from the file at the specified path */
     /* Return the attribute keys and attribute values in the dict */
     /* Return TRUE if successful, FALSE if there was no data provided */
diff --git a/extensions/source/macosx/spotlight/main.m b/extensions/source/macosx/spotlight/main.m
index 2fa2723..cf0172c 100644
--- a/extensions/source/macosx/spotlight/main.m
+++ b/extensions/source/macosx/spotlight/main.m
@@ -207,8 +207,9 @@ ULONG MetadataImporterPluginRelease(void *thisInstance)
 //	Implementation of the factory function for this type.
 //
 void *
-MetadataImporterPluginFactory(CFAllocatorRef /*allocator*/, CFUUIDRef typeID)
+MetadataImporterPluginFactory(CFAllocatorRef allocator, CFUUIDRef typeID)
 {
+    (void) allocator; /* unused */
     MetadataImporterPluginType *result;
     CFUUIDRef                 uuid;
 


More information about the Libreoffice-commits mailing list