From 3c8046db92fea519d31a36c09904e1368cfec8b8 Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Tue, 21 Jun 2011 00:16:15 +0000 Subject: - Rework a number of protocol defintions when refactoring to fix IB compilation warnings --- Source/SPContentFilterManager.h | 5 ++--- Source/SPCustomQuery.h | 5 ++--- Source/SPFieldEditorController.h | 5 ++--- Source/SPIndexesController.h | 5 ++--- Source/SPQueryFavoriteManager.h | 5 ++--- Source/SPTableContent.h | 5 ++--- Source/SPTableStructure.h | 5 ++--- 7 files changed, 14 insertions(+), 21 deletions(-) (limited to 'Source') diff --git a/Source/SPContentFilterManager.h b/Source/SPContentFilterManager.h index ec23afe6..dda8995c 100644 --- a/Source/SPContentFilterManager.h +++ b/Source/SPContentFilterManager.h @@ -31,10 +31,9 @@ @end -#ifndef SP_REFACTOR /* ivars */ @interface SPContentFilterManager : NSWindowController -#else -@interface SPContentFilterManager : NSWindowController +#ifdef SP_REFACTOR /* ivars */ + #endif { #ifndef SP_REFACTOR /* ivars */ diff --git a/Source/SPCustomQuery.h b/Source/SPCustomQuery.h index 16aaca14..8d289f70 100644 --- a/Source/SPCustomQuery.h +++ b/Source/SPCustomQuery.h @@ -52,10 +52,9 @@ @class SPCopyTable, SPQueryFavoriteManager, SPDataStorage, NSSplitView, SPFieldEditorController; #endif -#ifndef SP_REFACTOR @interface SPCustomQuery : NSObject -#else -@interface SPCustomQuery : NSObject +#ifdef SP_REFACTOR + #endif { IBOutlet id tableDocumentInstance; diff --git a/Source/SPFieldEditorController.h b/Source/SPFieldEditorController.h index e2cc3195..29d4c445 100644 --- a/Source/SPFieldEditorController.h +++ b/Source/SPFieldEditorController.h @@ -32,10 +32,9 @@ * This class offers a sheet for editing different kind of data such as text, blobs (including images) as * editSheet and bit fields as bitSheet. */ -#ifndef SP_REFACTOR @interface SPFieldEditorController : NSWindowController -#else -@interface SPFieldEditorController : NSWindowController +#ifdef SP_REFACTOR + #endif { IBOutlet id editSheetProgressBar; diff --git a/Source/SPIndexesController.h b/Source/SPIndexesController.h index 6b755bcc..b91481bc 100644 --- a/Source/SPIndexesController.h +++ b/Source/SPIndexesController.h @@ -29,10 +29,9 @@ @class SPDatabaseDocument, SPTablesList, SPTableData, SPTableStructure, MCPConnection, SPTableView; #endif -#ifndef SP_REFACTOR @interface SPIndexesController : NSWindowController -#else -@interface SPIndexesController : NSWindowController +#ifdef SP_REFACTOR + #endif { // Controllers diff --git a/Source/SPQueryFavoriteManager.h b/Source/SPQueryFavoriteManager.h index 0ebdc837..66d43778 100644 --- a/Source/SPQueryFavoriteManager.h +++ b/Source/SPQueryFavoriteManager.h @@ -31,10 +31,9 @@ @end -#ifndef SP_REFACTOR @interface SPQueryFavoriteManager : NSWindowController -#else -@interface SPQueryFavoriteManager : NSWindowController +#ifdef SP_REFACTOR + #endif { #ifndef SP_REFACTOR /* ivars */ diff --git a/Source/SPTableContent.h b/Source/SPTableContent.h index 9220b21d..4b7def6f 100644 --- a/Source/SPTableContent.h +++ b/Source/SPTableContent.h @@ -31,10 +31,9 @@ @class SPTableData, SPDatabaseDocument, SPTablesList, SPTableStructure, SPTableList; -#ifndef SP_REFACTOR @interface SPTableContent : NSObject -#else -@interface SPTableContent : NSObject +#ifdef SP_REFACTOR + #endif { IBOutlet SPDatabaseDocument *tableDocumentInstance; diff --git a/Source/SPTableStructure.h b/Source/SPTableStructure.h index b8657273..9b09b847 100644 --- a/Source/SPTableStructure.h +++ b/Source/SPTableStructure.h @@ -27,10 +27,9 @@ @class SPDatabaseDocument, SPTableFieldValidation, SPTableData, SPDatabaseData, SPTablesList, SPIndexesController, SPTableView; -#ifndef SP_REFACTOR @interface SPTableStructure : NSObject -#else -@interface SPTableStructure : NSObject +#ifdef SP_REFACTOR + #endif { IBOutlet SPTablesList* tablesListInstance; -- cgit v1.2.3