浏览代码

Merge pull request #1800 from cg2121/add-pragma-once

UI, libobs, text-freetype2: Add missing pragma once in header files
Jim 6 年之前
父节点
当前提交
a0ead6f974

+ 2 - 0
UI/audio-encoders.hpp

@@ -1,3 +1,5 @@
+#pragma once
+
 #include <obs.hpp>
 
 #include <map>

+ 2 - 0
UI/expand-checkbox.hpp

@@ -1,3 +1,5 @@
+#pragma once
+
 #include <QCheckBox>
 
 class ExpandCheckBox : public QCheckBox {

+ 2 - 0
UI/frontend-plugins/decklink-output-ui/decklink-ui-main.h

@@ -1,3 +1,5 @@
+#pragma once
+
 void output_start();
 void output_stop();
 OBSData load_settings();

+ 2 - 0
UI/frontend-plugins/frontend-tools/scripts.hpp

@@ -1,3 +1,5 @@
+#pragma once
+
 #include <QWidget>
 #include <QString>
 

+ 2 - 0
UI/hotkey-edit.hpp

@@ -15,6 +15,8 @@
     along with this program.  If not, see <http://www.gnu.org/licenses/>.
 ******************************************************************************/
 
+#pragma once
+
 #include <QLineEdit>
 #include <QKeyEvent>
 #include <QPushButton>

+ 2 - 0
UI/locked-checkbox.hpp

@@ -1,3 +1,5 @@
+#pragma once
+
 #include <QCheckBox>
 #include <QPixmap>
 

+ 2 - 0
UI/source-label.hpp

@@ -15,6 +15,8 @@
     along with this program.  If not, see <http://www.gnu.org/licenses/>.
 ******************************************************************************/
 
+#pragma once
+
 #include <QLabel>
 #include <obs.hpp>
 

+ 2 - 0
UI/visibility-checkbox.hpp

@@ -1,3 +1,5 @@
+#pragma once
+
 #include <QCheckBox>
 #include <QPixmap>
 

+ 2 - 0
libobs/audio-monitoring/win32/wasapi-output.h

@@ -1,3 +1,5 @@
+#pragma once
+
 #include <windows.h>
 #include <mmdeviceapi.h>
 #include <audioclient.h>

+ 2 - 0
plugins/text-freetype2/obs-convenience.h

@@ -15,6 +15,8 @@ You should have received a copy of the GNU General Public License
 along with this program.  If not, see <http://www.gnu.org/licenses/>.
 ******************************************************************************/
 
+#pragma once
+
 #include <obs-module.h>
 
 gs_vertbuffer_t *create_uv_vbuffer(uint32_t num_verts, bool add_color);

+ 2 - 0
plugins/text-freetype2/text-freetype2.h

@@ -15,6 +15,8 @@ You should have received a copy of the GNU General Public License
 along with this program.  If not, see <http://www.gnu.org/licenses/>.
 ******************************************************************************/
 
+#pragma once
+
 #include <obs-module.h>
 #include <ft2build.h>