diff --git a/src/Config.h b/src/Config.h index 8966f2d0..eb3de519 100644 --- a/src/Config.h +++ b/src/Config.h @@ -1,6 +1,6 @@ /* obs-websocket -Copyright (C) 2016-2017 Stéphane Lepin +Copyright (C) 2016-2019 Stéphane Lepin This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -16,8 +16,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see */ -#ifndef CONFIG_H -#define CONFIG_H +#pragma once #include #include @@ -55,5 +54,3 @@ class Config { private: static ConfigPtr _instance; }; - -#endif // CONFIG_H diff --git a/src/Utils.h b/src/Utils.h index 651991d6..040f6d01 100644 --- a/src/Utils.h +++ b/src/Utils.h @@ -1,6 +1,6 @@ /* obs-websocket -Copyright (C) 2016-2017 Stéphane Lepin +Copyright (C) 2016-2019 Stéphane Lepin This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -16,8 +16,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see */ -#ifndef UTILS_H -#define UTILS_H +#pragma once #include @@ -80,5 +79,3 @@ class Utils { static const char* GetFilenameFormatting(); static bool SetFilenameFormatting(const char* filenameFormatting); }; - -#endif // UTILS_H diff --git a/src/WSEvents.h b/src/WSEvents.h index 97187404..48de519d 100644 --- a/src/WSEvents.h +++ b/src/WSEvents.h @@ -1,6 +1,6 @@ /* obs-websocket -Copyright (C) 2016-2017 Stéphane Lepin +Copyright (C) 2016-2019 Stéphane Lepin Copyright (C) 2017 Brendan Hagan This program is free software; you can redistribute it and/or modify @@ -17,8 +17,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see */ -#ifndef WSEVENTS_H -#define WSEVENTS_H +#pragma once #include #include @@ -118,5 +117,3 @@ private: static void OnSceneItemDelete(void* param, calldata_t* data); static void OnSceneItemVisibilityChanged(void* param, calldata_t* data); }; - -#endif // WSEVENTS_H diff --git a/src/WSRequestHandler.h b/src/WSRequestHandler.h index 19aa22bc..9d87366d 100644 --- a/src/WSRequestHandler.h +++ b/src/WSRequestHandler.h @@ -1,6 +1,6 @@ /* obs-websocket -Copyright (C) 2016-2017 Stéphane Lepin +Copyright (C) 2016-2019 Stéphane Lepin Copyright (C) 2017 Mikhail Swift This program is free software; you can redistribute it and/or modify @@ -17,8 +17,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see */ -#ifndef WSREQUESTHANDLER_H -#define WSREQUESTHANDLER_H +#pragma once #include #include @@ -150,5 +149,3 @@ class WSRequestHandler : public QObject { static HandlerResponse HandleSetBrowserSourceProperties(WSRequestHandler* req); static HandlerResponse HandleGetBrowserSourceProperties(WSRequestHandler* req); }; - -#endif // WSPROTOCOL_H diff --git a/src/WSServer.h b/src/WSServer.h index eee056d8..d3e2e3eb 100644 --- a/src/WSServer.h +++ b/src/WSServer.h @@ -1,6 +1,6 @@ /* obs-websocket -Copyright (C) 2016-2017 Stéphane Lepin +Copyright (C) 2016-2019 Stéphane Lepin This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -16,8 +16,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see */ -#ifndef WSSERVER_H -#define WSSERVER_H +#pragma once #include #include @@ -73,5 +72,3 @@ private: std::map> _connectionProperties; QMutex _clMutex; }; - -#endif // WSSERVER_H diff --git a/src/forms/settings-dialog.h b/src/forms/settings-dialog.h index 17433f1d..665d29de 100644 --- a/src/forms/settings-dialog.h +++ b/src/forms/settings-dialog.h @@ -1,6 +1,6 @@ /* obs-websocket -Copyright (C) 2016-2017 Stéphane Lepin +Copyright (C) 2016-2019 Stéphane Lepin This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -16,8 +16,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see */ -#ifndef SETTINGSDIALOG_H -#define SETTINGSDIALOG_H +#pragma once #include @@ -40,5 +39,3 @@ private Q_SLOTS: private: Ui::SettingsDialog* ui; }; - -#endif // SETTINGSDIALOG_H diff --git a/src/obs-websocket.h b/src/obs-websocket.h index 0bb4aed3..a4aa8016 100644 --- a/src/obs-websocket.h +++ b/src/obs-websocket.h @@ -1,6 +1,6 @@ /* obs-websocket -Copyright (C) 2016-2017 Stéphane Lepin +Copyright (C) 2016-2019 Stéphane Lepin This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -16,8 +16,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see */ -#ifndef OBSWEBSOCKET_H -#define OBSWEBSOCKET_H +#pragma once #include @@ -42,5 +41,3 @@ using OBSOutputAutoRelease = #define OBS_WEBSOCKET_VERSION "4.5.0" #define blog(level, msg, ...) blog(level, "[obs-websocket] " msg, ##__VA_ARGS__) - -#endif // OBSWEBSOCKET_H