diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2016-02-09 09:21:53 +1100 |
---|---|---|
committer | Chris Sherlock <chris.sherlock79@gmail.com> | 2016-02-09 08:11:34 +0000 |
commit | 538f276ae0414ea34ede6090b5f56e8fecd6fc65 (patch) | |
tree | efbfb952f3236a6f56540ddae6a896c8c73774a0 /extensions/source/macosx | |
parent | f12e483589888f87843026ceff5ae3c1e615ca02 (diff) |
Formatting changes across all modules
+ Removed comment cruft
+ Tab formatting in number of files
+ Some commented out code removed
+ Tab characters replaced with spaces
+ Newline cleanup in quite a few files
+ Tweak header guard #endifs
Change-Id: I3208ff2f047da890edcc49b73389aca22442f5fc
Reviewed-on: https://gerrit.libreoffice.org/22221
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
Diffstat (limited to 'extensions/source/macosx')
-rw-r--r-- | extensions/source/macosx/spotlight/main.m | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/extensions/source/macosx/spotlight/main.m b/extensions/source/macosx/spotlight/main.m index 6457ff7127c6..d3c3f44c80c0 100644 --- a/extensions/source/macosx/spotlight/main.m +++ b/extensions/source/macosx/spotlight/main.m @@ -37,9 +37,7 @@ #include "GetMetadataForFile.h" -// ----------------------------------------------------------------------------- // constants -// ----------------------------------------------------------------------------- #define PLUGIN_ID "A3FCC88D-B9A6-4364-8B93-92123C8A2D18" @@ -52,9 +50,7 @@ // -// ----------------------------------------------------------------------------- // typedefs -// ----------------------------------------------------------------------------- // The layout for an instance of MetaDataImporterPlugIn typedef struct __MetadataImporterPluginType @@ -64,9 +60,7 @@ typedef struct __MetadataImporterPluginType UInt32 refCount; } MetadataImporterPluginType; -// ----------------------------------------------------------------------------- // prototypes -// ----------------------------------------------------------------------------- // Forward declaration for the IUnknown implementation. // @@ -75,9 +69,7 @@ void DeallocMetadataImporterPluginType(MetadataImporterPlug HRESULT MetadataImporterQueryInterface(void *thisInstance,REFIID iid,LPVOID *ppv); ULONG MetadataImporterPluginAddRef(void *thisInstance); ULONG MetadataImporterPluginRelease(void *thisInstance); -// ----------------------------------------------------------------------------- // testInterfaceFtbl definition -// ----------------------------------------------------------------------------- // The TestInterface function table. // @@ -90,9 +82,7 @@ static MDImporterInterfaceStruct testInterfaceFtbl = { }; -// ----------------------------------------------------------------------------- // AllocMetadataImporterPluginType -// ----------------------------------------------------------------------------- // Utility function that allocates a new instance. // You can do some initial setup for the importer here if you wish // like allocating globals etc... @@ -116,9 +106,7 @@ MetadataImporterPluginType *AllocMetadataImporterPluginType(CFUUIDRef inFactoryI return theNewInstance; } -// ----------------------------------------------------------------------------- // DeallocSpotlightTesterMDImporterPluginType -// ----------------------------------------------------------------------------- // Utility function that deallocates the instance when // the refCount goes to zero. // In the current implementation importer interfaces are never deallocated @@ -136,9 +124,7 @@ void DeallocMetadataImporterPluginType(MetadataImporterPluginType *thisInstance) } } -// ----------------------------------------------------------------------------- // MetadataImporterQueryInterface -// ----------------------------------------------------------------------------- // Implementation of the IUnknown QueryInterface function. // HRESULT MetadataImporterQueryInterface(void *thisInstance,REFIID iid,LPVOID *ppv) @@ -172,9 +158,7 @@ HRESULT MetadataImporterQueryInterface(void *thisInstance,REFIID iid,LPVOID *ppv } } -// ----------------------------------------------------------------------------- // MetadataImporterPluginAddRef -// ----------------------------------------------------------------------------- // Implementation of reference counting for this type. Whenever an interface // is requested, bump the refCount for the instance. NOTE: returning the // refcount is a convention but is not required so don't rely on it. @@ -185,9 +169,7 @@ ULONG MetadataImporterPluginAddRef(void *thisInstance) return ((MetadataImporterPluginType*) thisInstance)->refCount; } -// ----------------------------------------------------------------------------- // SampleCMPluginRelease -// ----------------------------------------------------------------------------- // When an interface is released, decrement the refCount. // If the refCount goes to zero, deallocate the instance. // @@ -202,9 +184,7 @@ ULONG MetadataImporterPluginRelease(void *thisInstance) } } -// ----------------------------------------------------------------------------- // SpotlightTesterMDImporterPluginFactory -// ----------------------------------------------------------------------------- // Implementation of the factory function for this type. // __attribute__ ((visibility("default"))) |