Skip to content

Commit f13e625

Browse files
committed
Switched to Using Pragma Once
1 parent a22ee3d commit f13e625

File tree

9 files changed

+9
-44
lines changed

9 files changed

+9
-44
lines changed

Native/Addon/Clipboard.h

+1-5
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@
1111
// Prefaces //
1212
//----------------------------------------------------------------------------//
1313

14-
#ifndef ADDON_CLIPBOARD_H
15-
#define ADDON_CLIPBOARD_H
16-
14+
#pragma once
1715
#include "Common.h"
1816

1917

@@ -42,5 +40,3 @@ class ClipboardWrap : public ObjectWrap
4240
public:
4341
static void Initialize (Handle<Object> exports);
4442
};
45-
46-
#endif // ADDON_CLIPBOARD_H

Native/Addon/Common.h

+1-4
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
// Prefaces //
1212
//----------------------------------------------------------------------------//
1313

14-
#ifndef ADDON_COMMON_H
15-
#define ADDON_COMMON_H
14+
#pragma once
1615

1716
#include <node_buffer.h>
1817
#include <node_object_wrap.h>
@@ -220,5 +219,3 @@ inline T* UnwrapRobot (Handle<Value> value)
220219
// Return the final unwrapped class
221220
return ObjectWrap::Unwrap<T> (obj);
222221
}
223-
224-
#endif // ADDON_COMMON_H

Native/Addon/Image.h

+1-5
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@
1111
// Prefaces //
1212
//----------------------------------------------------------------------------//
1313

14-
#ifndef ADDON_IMAGE_H
15-
#define ADDON_IMAGE_H
16-
14+
#pragma once
1715
#include "Common.h"
1816

1917

@@ -56,5 +54,3 @@ class ImageWrap : public ObjectWrap
5654
public:
5755
Image mImage;
5856
};
59-
60-
#endif // ADDON_IMAGE_H

Native/Addon/Keyboard.h

+1-5
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@
1111
// Prefaces //
1212
//----------------------------------------------------------------------------//
1313

14-
#ifndef ADDON_KEYBOARD_H
15-
#define ADDON_KEYBOARD_H
16-
14+
#pragma once
1715
#include "Common.h"
1816

1917

@@ -44,5 +42,3 @@ class KeyboardWrap : public ObjectWrap
4442
public:
4543
Keyboard mKeyboard;
4644
};
47-
48-
#endif // ADDON_KEYBOARD_H

Native/Addon/Memory.h

+1-5
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@
1111
// Prefaces //
1212
//----------------------------------------------------------------------------//
1313

14-
#ifndef ADDON_MEMORY_H
15-
#define ADDON_MEMORY_H
16-
14+
#pragma once
1715
#include "Common.h"
1816

1917

@@ -58,5 +56,3 @@ class MemoryWrap : public ObjectWrap
5856
public:
5957
Memory mMemory;
6058
};
61-
62-
#endif // ADDON_MEMORY_H

Native/Addon/Mouse.h

+1-5
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@
1111
// Prefaces //
1212
//----------------------------------------------------------------------------//
1313

14-
#ifndef ADDON_MOUSE_H
15-
#define ADDON_MOUSE_H
16-
14+
#pragma once
1715
#include "Common.h"
1816

1917

@@ -47,5 +45,3 @@ class MouseWrap : public ObjectWrap
4745
public:
4846
Mouse mMouse;
4947
};
50-
51-
#endif // ADDON_MOUSE_H

Native/Addon/Process.h

+1-5
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@
1111
// Prefaces //
1212
//----------------------------------------------------------------------------//
1313

14-
#ifndef ADDON_PROCESS_H
15-
#define ADDON_PROCESS_H
16-
14+
#pragma once
1715
#include "Common.h"
1816

1917

@@ -61,5 +59,3 @@ class ProcessWrap : public ObjectWrap
6159
public:
6260
Process mProcess;
6361
};
64-
65-
#endif // ADDON_PROCESS_H

Native/Addon/Screen.h

+1-5
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@
1111
// Prefaces //
1212
//----------------------------------------------------------------------------//
1313

14-
#ifndef ADDON_SCREEN_H
15-
#define ADDON_SCREEN_H
16-
14+
#pragma once
1715
#include "Common.h"
1816

1917

@@ -36,5 +34,3 @@ class ScreenWrap : public ObjectWrap
3634
public:
3735
static void Initialize (Handle<Object> exports);
3836
};
39-
40-
#endif // ADDON_SCREEN_H

Native/Addon/Window.h

+1-5
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@
1111
// Prefaces //
1212
//----------------------------------------------------------------------------//
1313

14-
#ifndef ADDON_WINDOW_H
15-
#define ADDON_WINDOW_H
16-
14+
#pragma once
1715
#include "Common.h"
1816

1917

@@ -71,5 +69,3 @@ class WindowWrap : public ObjectWrap
7169
public:
7270
Window mWindow;
7371
};
74-
75-
#endif // ADDON_WINDOW_H

0 commit comments

Comments
 (0)