Convert to pragma once

This commit is contained in:
Jack Andersen
2018-10-06 17:40:25 -10:00
parent 4c7971f53a
commit dbd48a39cc
58 changed files with 58 additions and 174 deletions

View File

@@ -1,5 +1,4 @@
#ifndef __AMUSE_AUDIOUNIT_CONTAININGAPP_HPP__
#define __AMUSE_AUDIOUNIT_CONTAININGAPP_HPP__
#pragma once
#import <AppKit/AppKit.h>
#import "AudioGroupFilePresenter.hpp"
@@ -58,4 +57,3 @@
- (void)startSample:(int)sampId;
@end
#endif // __AMUSE_AUDIOUNIT_CONTAININGAPP_HPP__

View File

@@ -1,5 +1,4 @@
#ifndef __AMUSE_AUDIOUNIT_AUDIOGROUPFILEPRESENTER_HPP__
#define __AMUSE_AUDIOUNIT_AUDIOGROUPFILEPRESENTER_HPP__
#pragma once
#import <Foundation/Foundation.h>
#import <AppKit/AppKit.h>
@@ -166,4 +165,3 @@ initWithName:(NSAttributedString*)name
- (void)removeSelectedItem;
@end
#endif // __AMUSE_AUDIOUNIT_AUDIOGROUPFILEPRESENTER_HPP__

View File

@@ -1,5 +1,4 @@
#ifndef __AMUSE_AUDIOUNIT_BACKEND_HPP__
#define __AMUSE_AUDIOUNIT_BACKEND_HPP__
#pragma once
#ifdef __APPLE__
#include <Availability.h>
@@ -52,4 +51,3 @@ void RegisterAudioUnit();
#endif
#endif
#endif // __AMUSE_AUDIOUNIT_BACKEND_HPP__

View File

@@ -1,5 +1,4 @@
#ifndef __AMUSE_AUDIOUNIT_VIEWCONTROLLER_HPP__
#define __AMUSE_AUDIOUNIT_VIEWCONTROLLER_HPP__
#pragma once
#import <CoreAudioKit/CoreAudioKit.h>
#import "AudioGroupFilePresenter.hpp"
@@ -22,4 +21,3 @@
}
@end
#endif // __AMUSE_AUDIOUNIT_VIEWCONTROLLER_HPP__

View File

@@ -1,5 +1,4 @@
#ifndef AMUSE_ADSR_EDITOR_HPP
#define AMUSE_ADSR_EDITOR_HPP
#pragma once
#include "EditorWidget.hpp"
#include <QFrame>
@@ -81,4 +80,3 @@ public:
};
#endif //AMUSE_ADSR_EDITOR_HPP

View File

@@ -1,5 +1,4 @@
#ifndef AMUSE_COMMON_HPP
#define AMUSE_COMMON_HPP
#pragma once
#include "boo/System.hpp"
#include <QString>
@@ -65,4 +64,3 @@ template<> struct hash<QString>
};
}
#endif //AMUSE_COMMON_HPP

View File

@@ -1,5 +1,4 @@
#ifndef AMUSE_CURVE_EDITOR_HPP
#define AMUSE_CURVE_EDITOR_HPP
#pragma once
#include "EditorWidget.hpp"
#include <QFrame>
@@ -63,4 +62,3 @@ public:
ProjectModel::INode* currentNode() const;
};
#endif //AMUSE_CURVE_EDITOR_HPP

View File

@@ -1,5 +1,4 @@
#ifndef AMUSE_EDITOR_WIDGET_HPP
#define AMUSE_EDITOR_WIDGET_HPP
#pragma once
#include <QWidget>
#include <QUndoCommand>
@@ -251,4 +250,3 @@ private slots:
void doFindUsages();
};
#endif //AMUSE_EDITOR_WIDGET_HPP

View File

@@ -1,5 +1,4 @@
#ifndef AMUSE_KEYBOARD_WIDGET_HPP
#define AMUSE_KEYBOARD_WIDGET_HPP
#pragma once
#include <QWidget>
#include <QSvgWidget>
@@ -103,4 +102,3 @@ public:
void wheelEvent(QWheelEvent* ev) { ev->ignore(); }
};
#endif //AMUSE_KEYBOARD_WIDGET_HPP

View File

@@ -1,5 +1,4 @@
#ifndef AMUSE_KEYMAP_EDITOR_HPP
#define AMUSE_KEYMAP_EDITOR_HPP
#pragma once
#include "EditorWidget.hpp"
#include <QFrame>
@@ -106,4 +105,3 @@ public:
void keyPressEvent(QKeyEvent* event);
};
#endif //AMUSE_KEYMAP_EDITOR_HPP

View File

@@ -1,5 +1,4 @@
#ifndef AMUSE_LAYERS_EDITOR_HPP
#define AMUSE_LAYERS_EDITOR_HPP
#pragma once
#include "EditorWidget.hpp"
#include <QAbstractTableModel>
@@ -89,4 +88,3 @@ private slots:
void itemDeleteAction();
};
#endif //AMUSE_LAYERS_EDITOR_HPP

View File

@@ -1,5 +1,4 @@
#ifndef AMUSE_MIDI_READER_HPP
#define AMUSE_MIDI_READER_HPP
#pragma once
#include "amuse/Voice.hpp"
#include "amuse/BooBackend.hpp"
@@ -49,4 +48,3 @@ public:
std::unique_ptr<amuse::IMIDIReader> allocateMIDIReader(amuse::Engine& engine);
};
#endif // AMUSE_MIDI_READER_HPP

View File

@@ -1,5 +1,4 @@
#ifndef AMUSE_MAINWINDOW_HPP
#define AMUSE_MAINWINDOW_HPP
#pragma once
#include <QMainWindow>
#include <QUndoStack>
@@ -306,4 +305,3 @@ public slots:
};
#endif //AMUSE_MAINWINDOW_HPP

View File

@@ -1,5 +1,4 @@
#ifndef AMUSE_NEW_SOUND_MACRO_DIALOG_HPP
#define AMUSE_NEW_SOUND_MACRO_DIALOG_HPP
#pragma once
#include <QDialog>
#include <QLineEdit>
@@ -25,4 +24,3 @@ public:
const SoundMacroTemplateEntry* getSelectedTemplate() const;
};
#endif // AMUSE_NEW_SOUND_MACRO_DIALOG_HPP

View File

@@ -1,5 +1,4 @@
#ifndef AMUSE_PROJECT_MODEL_HPP
#define AMUSE_PROJECT_MODEL_HPP
#pragma once
#include <QAbstractItemModel>
#include <QIdentityProxyModel>
@@ -513,4 +512,3 @@ public:
};
#endif //AMUSE_PROJECT_MODEL_HPP

View File

@@ -1,5 +1,4 @@
#ifndef AMUSE_SAMPLE_EDITOR_HPP
#define AMUSE_SAMPLE_EDITOR_HPP
#pragma once
#include "EditorWidget.hpp"
#include "ProjectModel.hpp"
@@ -113,4 +112,3 @@ public:
};
#endif //AMUSE_SAMPLE_EDITOR_HPP

View File

@@ -1,5 +1,4 @@
#ifndef AMUSE_SONG_GROUP_EDITOR_HPP
#define AMUSE_SONG_GROUP_EDITOR_HPP
#pragma once
#include "EditorWidget.hpp"
#include <QTabWidget>
@@ -298,4 +297,3 @@ private slots:
void itemDeleteAction();
};
#endif //AMUSE_SONG_GROUP_EDITOR_HPP

View File

@@ -1,5 +1,4 @@
#ifndef AMUSE_SOUND_GROUP_EDITOR_HPP
#define AMUSE_SOUND_GROUP_EDITOR_HPP
#pragma once
#include "EditorWidget.hpp"
#include <QStyledItemDelegate>
@@ -130,4 +129,3 @@ private slots:
void itemDeleteAction();
};
#endif //AMUSE_SOUND_GROUP_EDITOR_HPP

View File

@@ -1,5 +1,4 @@
#ifndef AMUSE_SOUND_MACRO_EDITOR_HPP
#define AMUSE_SOUND_MACRO_EDITOR_HPP
#pragma once
#include "EditorWidget.hpp"
#include <QStaticText>
@@ -187,4 +186,3 @@ public slots:
};
#endif //AMUSE_SOUND_MACRO_EDITOR_HPP

View File

@@ -1,5 +1,4 @@
#ifndef AMUSE_STATUSBAR_WIDGET_HPP
#define AMUSE_STATUSBAR_WIDGET_HPP
#pragma once
#include <QStatusBar>
#include <QLabel>
@@ -74,4 +73,3 @@ public:
void exit();
};
#endif //AMUSE_STATUSBAR_WIDGET_HPP

View File

@@ -1,5 +1,4 @@
#ifndef AMUSE_STUDIO_SETUP_WIDGET_HPP
#define AMUSE_STUDIO_SETUP_WIDGET_HPP
#pragma once
#include "EditorWidget.hpp"
#include <QWidget>
@@ -202,4 +201,3 @@ signals:
void shown();
};
#endif // AMUSE_STUDIO_SETUP_WIDGET_HPP

View File

@@ -1,5 +1,4 @@
#ifndef __AMUSE_AUDIOGROUPFILEPRESENTER_HPP__
#define __AMUSE_AUDIOGROUPFILEPRESENTER_HPP__
#pragma once
#include <map>
#include <memory>
@@ -113,4 +112,3 @@ public:
};
}
#endif // __AMUSE_AUDIOGROUPFILEPRESENTER_HPP__

View File

@@ -1,8 +1,6 @@
#ifndef __AMUSE_FILEOPENDIALOG_HPP__
#define __AMUSE_FILEOPENDIALOG_HPP__
#pragma once
#include <string>
std::wstring openDB();
#endif // __AMUSE_FILEOPENDIALOG_HPP__

View File

@@ -1,5 +1,4 @@
#ifndef __AMUSE_VSTBACKEND_HPP__
#define __AMUSE_VSTBACKEND_HPP__
#pragma once
#include "audioeffectx.h"
#include "VSTEditor.hpp"
@@ -74,4 +73,3 @@ public:
};
}
#endif // __AMUSE_VSTBACKEND_HPP__

View File

@@ -1,5 +1,4 @@
#ifndef __AMUSE_VSTEDITOR_HPP__
#define __AMUSE_VSTEDITOR_HPP__
#pragma once
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
@@ -61,4 +60,3 @@ public:
};
}
#endif // __AMUSE_VSTEDITOR_HPP__

View File

@@ -1,5 +1,4 @@
#ifndef __AMUSE_AUDIOGROUP_HPP__
#define __AMUSE_AUDIOGROUP_HPP__
#pragma once
#include "AudioGroupPool.hpp"
#include "AudioGroupProject.hpp"
@@ -116,4 +115,3 @@ public:
};
}
#endif // __AMUSE_AUDIOGROUP_HPP__

View File

@@ -1,5 +1,4 @@
#ifndef __AMUSE_AUDIOGROUPDATA_HPP__
#define __AMUSE_AUDIOGROUPDATA_HPP__
#pragma once
#include "Common.hpp"
@@ -123,4 +122,3 @@ public:
};
}
#endif // __AMUSE_AUDIOGROUPDATA_HPP__

View File

@@ -1,5 +1,4 @@
#ifndef __AMUSE_AUDIOGROUPPOOL_HPP__
#define __AMUSE_AUDIOGROUPPOOL_HPP__
#pragma once
#include <cstdint>
#include <vector>
@@ -1459,4 +1458,3 @@ public:
};
}
#endif // __AMUSE_AUDIOGROUPPOOL_HPP__

View File

@@ -1,5 +1,4 @@
#ifndef __AMUSE_AUDIOGROUPPROJECT_HPP__
#define __AMUSE_AUDIOGROUPPROJECT_HPP__
#pragma once
#include "Entity.hpp"
#include "Common.hpp"
@@ -226,4 +225,3 @@ public:
};
}
#endif // __AMUSE_AUDIOGROUPPROJECT_HPP__

View File

@@ -1,5 +1,4 @@
#ifndef __AMUSE_AUDIOGROUPSAMPLEDIR_HPP__
#define __AMUSE_AUDIOGROUPSAMPLEDIR_HPP__
#pragma once
#include <unordered_map>
#include <cstdint>
@@ -383,4 +382,3 @@ using SampleEntry = AudioGroupSampleDirectory::Entry;
using SampleEntryData = AudioGroupSampleDirectory::EntryData;
}
#endif // __AMUSE_AUDIOGROUPSAMPLEDIR_HPP__

View File

@@ -1,5 +1,4 @@
#ifndef __AMUSE_BOO_BACKEND_HPP__
#define __AMUSE_BOO_BACKEND_HPP__
#pragma once
#include <boo/audiodev/IAudioVoiceEngine.hpp>
#include <boo/audiodev/IAudioSubmix.hpp>
@@ -144,4 +143,3 @@ public:
};
}
#endif // __AMUSE_BOO_BACKEND_HPP__

View File

@@ -1,5 +1,4 @@
#ifndef __AMUSE_COMMON_HPP__
#define __AMUSE_COMMON_HPP__
#pragma once
#include <algorithm>
#include <limits>
@@ -676,4 +675,3 @@ struct NameDB
};
}
#endif // __AMUSE_COMMON_HPP__

View File

@@ -1,5 +1,4 @@
#ifndef __AMUSE_CONTAINERREGISTRY_HPP__
#define __AMUSE_CONTAINERREGISTRY_HPP__
#pragma once
#include "AudioGroupData.hpp"
#include "Common.hpp"
@@ -45,4 +44,3 @@ public:
};
}
#endif // __AMUSE_CONTAINERREGISTRY_HPP__

View File

@@ -1,5 +1,4 @@
#ifndef _DSPCODEC_h
#define _DSPCODEC_h
#pragma once
#include <cstdint>
#include <cfloat>
@@ -37,4 +36,3 @@ void DSPCorrelateCoefs(const short* source, int samples, short coefsOut[8][2]);
void DSPEncodeFrame(short pcmInOut[16], int sampleCount, unsigned char adpcmOut[8], const short coefsIn[8][2]);
#endif // _DSPCODEC_h

View File

@@ -1,5 +1,4 @@
#ifndef __AMUSE_DIRECTORY_ENUMERATOR__
#define __AMUSE_DIRECTORY_ENUMERATOR__
#pragma once
#include "Common.hpp"
#include <vector>
@@ -65,4 +64,3 @@ public:
};
}
#endif // __AMUSE_DIRECTORY_ENUMERATOR__

View File

@@ -1,5 +1,4 @@
#ifndef __AMUSE_EFFECTBASE_HPP__
#define __AMUSE_EFFECTBASE_HPP__
#pragma once
#include <cstdint>
#include <cstdlib>
@@ -34,4 +33,3 @@ public:
};
}
#endif // __AMUSE_EFFECTBASE_HPP__

View File

@@ -1,5 +1,4 @@
#ifndef __AMUSE_EFFECTCHORUS_HPP__
#define __AMUSE_EFFECTCHORUS_HPP__
#pragma once
#include "EffectBase.hpp"
#include "Common.hpp"
@@ -123,4 +122,3 @@ public:
};
}
#endif // __AMUSE_EFFECTCHORUS_HPP__

View File

@@ -1,5 +1,4 @@
#ifndef __AMUSE_EFFECTDELAY_HPP__
#define __AMUSE_EFFECTDELAY_HPP__
#pragma once
#include "EffectBase.hpp"
#include "IBackendVoice.hpp"
@@ -142,4 +141,3 @@ public:
};
}
#endif // __AMUSE_EFFECTDELAY_HPP__

View File

@@ -1,5 +1,4 @@
#ifndef __AMUSE_EFFECTREVERB_HPP__
#define __AMUSE_EFFECTREVERB_HPP__
#pragma once
#include "EffectBase.hpp"
#include "amuse/Common.hpp"
@@ -220,4 +219,3 @@ public:
};
}
#endif // __AMUSE_EFFECTREVERB_HPP__

View File

@@ -1,5 +1,4 @@
#ifndef __AMUSE_EMITTER_HPP__
#define __AMUSE_EMITTER_HPP__
#pragma once
#include "Entity.hpp"
#include "Common.hpp"
@@ -64,4 +63,3 @@ public:
};
}
#endif // __AMUSE_EMITTER_HPP__

View File

@@ -1,5 +1,4 @@
#ifndef __AMUSE_ENGINE_HPP__
#define __AMUSE_ENGINE_HPP__
#pragma once
#include <memory>
#include <list>
@@ -195,4 +194,3 @@ public:
};
}
#endif // __AMUSE_ENGINE_HPP__

View File

@@ -1,5 +1,4 @@
#ifndef __AMUSE_ENTITY_HPP__
#define __AMUSE_ENTITY_HPP__
#pragma once
#include <cstdint>
#include <functional>
@@ -50,4 +49,3 @@ public:
}
#endif // __AMUSE_ENTITY_HPP__

View File

@@ -1,5 +1,4 @@
#ifndef __AMUSE_ENVELOPE_HPP__
#define __AMUSE_ENVELOPE_HPP__
#pragma once
#include "AudioGroupPool.hpp"
@@ -42,4 +41,3 @@ public:
};
}
#endif // __AMUSE_ENVELOPE_HPP__

View File

@@ -1,5 +1,4 @@
#ifndef __AMUSE_IBACKENDSUBMIX_HPP__
#define __AMUSE_IBACKENDSUBMIX_HPP__
#pragma once
#include <memory>
@@ -32,4 +31,3 @@ public:
};
}
#endif // __AMUSE_IBACKENDSUBMIX_HPP__

View File

@@ -1,5 +1,4 @@
#ifndef __AMUSE_IBACKENDVOICE_HPP__
#define __AMUSE_IBACKENDVOICE_HPP__
#pragma once
namespace amuse
{
@@ -52,4 +51,3 @@ public:
};
}
#endif // __AMUSE_IBACKENDVOICE_HPP__

View File

@@ -1,5 +1,4 @@
#ifndef __AMUSE_IBACKENDVOICEALLOCATOR_HPP__
#define __AMUSE_IBACKENDVOICEALLOCATOR_HPP__
#pragma once
#include <memory>
#include <functional>
@@ -60,4 +59,3 @@ public:
};
}
#endif // __AMUSE_IBACKENDVOICEALLOCATOR_HPP__

View File

@@ -1,5 +1,4 @@
#ifndef __AMUSE_LISTENER_HPP__
#define __AMUSE_LISTENER_HPP__
#pragma once
#include "amuse/Emitter.hpp"
@@ -27,4 +26,3 @@ public:
};
}
#endif // __AMUSE_LISTENER_HPP__

View File

@@ -1,5 +1,4 @@
#ifndef _N64MUSYXCODEC_h
#define _N64MUSYXCODEC_h
#pragma once
#include <cstdint>
@@ -18,4 +17,3 @@ unsigned N64MusyXDecompressFrameRanged(int16_t* out, const uint8_t* in,
const int16_t coefs[8][2][8],
unsigned firstSample, unsigned lastSample);
#endif // _N64MUSYXCODEC_h

View File

@@ -1,5 +1,4 @@
#ifndef __AMUSE_SEQUENCER_HPP__
#define __AMUSE_SEQUENCER_HPP__
#pragma once
#include "Entity.hpp"
#include "AudioGroupProject.hpp"
@@ -166,4 +165,3 @@ public:
};
}
#endif // __AMUSE_SEQUENCER_HPP__

View File

@@ -1,5 +1,4 @@
#ifndef __AMUSE_SONGCONVERTER_HPP__
#define __AMUSE_SONGCONVERTER_HPP__
#pragma once
#include <vector>
#include <cstdint>
@@ -15,4 +14,3 @@ public:
};
}
#endif // __AMUSE_SONGCONVERTER_HPP__

View File

@@ -1,5 +1,4 @@
#ifndef __AMUSE_SONGSTATE_HPP__
#define __AMUSE_SONGSTATE_HPP__
#pragma once
#include <cstdint>
#include <vector>
@@ -137,4 +136,3 @@ public:
};
}
#endif // __AMUSE_SONGSTATE_HPP__

View File

@@ -1,5 +1,4 @@
#ifndef __AMUSE_SOUNDMACROSTATE_HPP__
#define __AMUSE_SOUNDMACROSTATE_HPP__
#pragma once
#include <cstdint>
#include <vector>
@@ -143,4 +142,3 @@ public:
};
}
#endif // __AMUSE_SOUNDMACROSTATE_HPP__

View File

@@ -1,5 +1,4 @@
#ifndef __AMUSE_STUDIO_HPP__
#define __AMUSE_STUDIO_HPP__
#pragma once
#include <memory>
#include <list>
@@ -54,4 +53,3 @@ struct StudioSend
}
#endif // __AMUSE_STUDIO_HPP__

View File

@@ -1,5 +1,4 @@
#ifndef __AMUSE_SUBMIX_HPP__
#define __AMUSE_SUBMIX_HPP__
#pragma once
#include <memory>
#include "SoundMacroState.hpp"
@@ -111,4 +110,3 @@ public:
};
}
#endif // __AMUSE_SUBMIX_HPP__

View File

@@ -1,5 +1,4 @@
#ifndef __AMUSE_VOICE_HPP__
#define __AMUSE_VOICE_HPP__
#pragma once
#include <cstdint>
#include <cstdlib>
@@ -393,4 +392,3 @@ public:
};
}
#endif // __AMUSE_VOICE_HPP__

View File

@@ -1,5 +1,4 @@
#ifndef __AMUSE_VOLUME_TABLE_HPP__
#define __AMUSE_VOLUME_TABLE_HPP__
#pragma once
namespace amuse
{
@@ -7,4 +6,3 @@ float LookupVolume(float vol);
float LookupDLSVolume(float vol);
}
#endif // __AMUSE_VOLUME_TABLE_HPP__

View File

@@ -1,5 +1,4 @@
#ifndef __AMUSE_AMUSE_HPP__
#define __AMUSE_AMUSE_HPP__
#pragma once
#include "AudioGroup.hpp"
@@ -22,4 +21,3 @@
#include "Submix.hpp"
#include "Voice.hpp"
#endif // __AMUSE_AMUSE_HPP__

View File

@@ -1,5 +1,4 @@
#ifndef SWITCH_MATH_HPP
#define SWITCH_MATH_HPP
#pragma once
/* Properly forward math defines to std:: */
#ifdef __SWITCH__
@@ -19,4 +18,3 @@ namespace std
}
#endif
#endif //TEST_SWITCH_MATH_HPP