1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-29 12:50:28 +00:00

Merge pull request #1318 from TomHarte/MorePragmas

Switch trailing files to #pragma once.
This commit is contained in:
Thomas Harte 2024-01-22 14:00:51 -05:00 committed by GitHub
commit f2e29357bf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
9 changed files with 11 additions and 34 deletions

View File

@ -1550,6 +1550,7 @@
4B6AAEA8230E40250078E864 /* Target.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Target.cpp; sourceTree = "<group>"; }; 4B6AAEA8230E40250078E864 /* Target.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Target.cpp; sourceTree = "<group>"; };
4B6AAEA9230E40250078E864 /* SCSI.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = SCSI.hpp; sourceTree = "<group>"; }; 4B6AAEA9230E40250078E864 /* SCSI.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = SCSI.hpp; sourceTree = "<group>"; };
4B6AAEAA230E40250078E864 /* TargetImplementation.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = TargetImplementation.hpp; sourceTree = "<group>"; }; 4B6AAEAA230E40250078E864 /* TargetImplementation.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = TargetImplementation.hpp; sourceTree = "<group>"; };
4B6BBE682B5E0E5800E4C085 /* TypeInfo.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = TypeInfo.hpp; sourceTree = "<group>"; };
4B6ED2EE208E2F8A0047B343 /* WOZ.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = WOZ.cpp; sourceTree = "<group>"; }; 4B6ED2EE208E2F8A0047B343 /* WOZ.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = WOZ.cpp; sourceTree = "<group>"; };
4B6ED2EF208E2F8A0047B343 /* WOZ.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = WOZ.hpp; sourceTree = "<group>"; }; 4B6ED2EF208E2F8A0047B343 /* WOZ.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = WOZ.hpp; sourceTree = "<group>"; };
4B6FD0342923061300EC4760 /* HDV.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = HDV.cpp; sourceTree = "<group>"; }; 4B6FD0342923061300EC4760 /* HDV.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = HDV.cpp; sourceTree = "<group>"; };
@ -2959,10 +2960,11 @@
4B3AF7CF2413470E00873C0B /* Reflection */ = { 4B3AF7CF2413470E00873C0B /* Reflection */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
4B47F6C4241C87A100ED06F7 /* Struct.cpp */,
4BDA7F8129C4C223007A10A5 /* Dispatcher.hpp */, 4BDA7F8129C4C223007A10A5 /* Dispatcher.hpp */,
4B3AF7D02413470E00873C0B /* Enum.hpp */, 4B3AF7D02413470E00873C0B /* Enum.hpp */,
4B47F6C4241C87A100ED06F7 /* Struct.cpp */,
4B3AF7D12413472200873C0B /* Struct.hpp */, 4B3AF7D12413472200873C0B /* Struct.hpp */,
4B6BBE682B5E0E5800E4C085 /* TypeInfo.hpp */,
); );
name = Reflection; name = Reflection;
path = ../../Reflection; path = ../../Reflection;

View File

@ -1,5 +1,4 @@
#ifndef AUDIOSOURCE_H #pragma once
#define AUDIOSOURCE_H
#include <cstdint> #include <cstdint>
#include <mutex> #include <mutex>
@ -93,5 +92,3 @@ struct AudioBuffer: public QIODevice {
mutable size_t readPointer = 0; mutable size_t readPointer = 0;
size_t writePointer = 0; size_t writePointer = 0;
}; };
#endif // AUDIOSOURCE_H

View File

@ -1,5 +1,4 @@
#ifndef FUNCTIONTHREAD_H #pragma once
#define FUNCTIONTHREAD_H
#include <atomic> #include <atomic>
#include <QApplication> #include <QApplication>
@ -87,5 +86,3 @@ class FunctionThread: public QThread {
std::unique_ptr<FunctionPerformer> performer; std::unique_ptr<FunctionPerformer> performer;
std::atomic_flag performerFlag; std::atomic_flag performerFlag;
}; };
#endif // FUNCTIONTHREAD_H

View File

@ -1,5 +1,4 @@
#ifndef KEYBOARD_H #pragma once
#define KEYBOARD_H
#include <QKeyEvent> #include <QKeyEvent>
#include <map> #include <map>
@ -14,5 +13,3 @@ class KeyboardMapper {
private: private:
std::map<quint32, Inputs::Keyboard::Key> keyByKeySym; std::map<quint32, Inputs::Keyboard::Key> keyByKeySym;
}; };
#endif // MAINWINDOW_H

View File

@ -1,5 +1,4 @@
#ifndef MAINWINDOW_H #pragma once
#define MAINWINDOW_H
#include <QtGlobal> #include <QtGlobal>
@ -172,5 +171,3 @@ class MainWindow : public QMainWindow, public Outputs::Speaker::Speaker::Delegat
void addActivityObserver(); void addActivityObserver();
}; };
#endif // MAINWINDOW_H

View File

@ -1,5 +1,4 @@
#ifndef SCANTARGETWIDGET_H #pragma once
#define SCANTARGETWIDGET_H
#include <QOpenGLWidget> #include <QOpenGLWidget>
@ -72,5 +71,3 @@ class ScanTargetWidget : public QOpenGLWidget {
private slots: private slots:
void vsync(); void vsync();
}; };
#endif // SCANTARGETWIDGET_H

View File

@ -1,5 +1,4 @@
#ifndef SETTINGS_H #pragma once
#define SETTINGS_H
#include <QSettings> #include <QSettings>
@ -7,5 +6,3 @@ class Settings: public QSettings {
public: public:
Settings() : QSettings("thomasharte", "Clock Signal") {} Settings() : QSettings("thomasharte", "Clock Signal") {}
}; };
#endif // SETTINGS_H

View File

@ -1,5 +1,4 @@
#ifndef TIMER_H #pragma once
#define TIMER_H
#include <atomic> #include <atomic>
@ -30,5 +29,3 @@ class Timer : public QObject
FunctionThread thread; FunctionThread thread;
std::unique_ptr<QTimer> timer; std::unique_ptr<QTimer> timer;
}; };
#endif // TIMER_H

View File

@ -6,8 +6,7 @@
// Copyright © 2020 Thomas Harte. All rights reserved. // Copyright © 2020 Thomas Harte. All rights reserved.
// //
#ifndef TypeInfo_hpp #pragma once
#define TypeInfo_hpp
#define ForAllInts(x) \ #define ForAllInts(x) \
x(uint8_t); \ x(uint8_t); \
@ -59,6 +58,3 @@ inline size_t size(const std::type_info *type) {
} }
} }
#endif /* TypeInfo_hpp */