https://git.reactos.org/?p=reactos.git;a=commitdiff;h=4db1f987f3e113c871d98…
commit 4db1f987f3e113c871d98a34b80ed4b3d643332a
Author: Amine Khaldi <amine.khaldi(a)reactos.org>
AuthorDate: Sat Dec 9 13:36:45 2017 +0100
[MSPAINT] Add some header guards.
---
base/applications/mspaint/definitions.h | 2 ++
base/applications/mspaint/dialogs.h | 2 ++
base/applications/mspaint/dib.h | 2 ++
base/applications/mspaint/drawing.h | 2 ++
base/applications/mspaint/fullscreen.h | 2 ++
base/applications/mspaint/globalvar.h | 2 ++
base/applications/mspaint/history.h | 2 ++
base/applications/mspaint/imgarea.h | 2 ++
base/applications/mspaint/miniature.h | 2 ++
base/applications/mspaint/mouse.h | 2 ++
base/applications/mspaint/palette.h | 2 ++
base/applications/mspaint/palettemodel.h | 2 ++
base/applications/mspaint/registry.h | 2 ++
base/applications/mspaint/scrollbox.h | 2 ++
base/applications/mspaint/selection.h | 2 ++
base/applications/mspaint/selectionmodel.h | 2 ++
base/applications/mspaint/sizebox.h | 2 ++
base/applications/mspaint/textedit.h | 2 ++
base/applications/mspaint/toolbox.h | 2 ++
base/applications/mspaint/toolsettings.h | 2 ++
base/applications/mspaint/toolsmodel.h | 2 ++
base/applications/mspaint/winproc.h | 2 ++
22 files changed, 44 insertions(+)
diff --git a/base/applications/mspaint/definitions.h
b/base/applications/mspaint/definitions.h
index 818cc5c25f..6d5e7bc109 100644
--- a/base/applications/mspaint/definitions.h
+++ b/base/applications/mspaint/definitions.h
@@ -6,6 +6,8 @@
* PROGRAMMERS: Benedikt Freisen
*/
+#pragma once
+
/* DEFINES **********************************************************/
#define HISTORYSIZE 11
diff --git a/base/applications/mspaint/dialogs.h b/base/applications/mspaint/dialogs.h
index 7c85652601..701c23f20e 100644
--- a/base/applications/mspaint/dialogs.h
+++ b/base/applications/mspaint/dialogs.h
@@ -6,6 +6,8 @@
* PROGRAMMERS: Benedikt Freisen
*/
+#pragma once
+
class CMirrorRotateDialog : public CDialogImpl<CMirrorRotateDialog>
{
public:
diff --git a/base/applications/mspaint/dib.h b/base/applications/mspaint/dib.h
index 7a25f2b9d0..743c2e8e6a 100644
--- a/base/applications/mspaint/dib.h
+++ b/base/applications/mspaint/dib.h
@@ -6,6 +6,8 @@
* PROGRAMMERS: Benedikt Freisen
*/
+#pragma once
+
HBITMAP CreateDIBWithProperties(int width, int height);
int GetDIBWidth(HBITMAP hbm);
diff --git a/base/applications/mspaint/drawing.h b/base/applications/mspaint/drawing.h
index 9cc5c7886f..737d035250 100644
--- a/base/applications/mspaint/drawing.h
+++ b/base/applications/mspaint/drawing.h
@@ -6,6 +6,8 @@
* PROGRAMMERS: Benedikt Freisen
*/
+#pragma once
+
void Line(HDC hdc, LONG x1, LONG y1, LONG x2, LONG y2, COLORREF color, int thickness);
void Rect(HDC hdc, LONG x1, LONG y1, LONG x2, LONG y2, COLORREF fg, COLORREF bg, int
thickness, int style);
diff --git a/base/applications/mspaint/fullscreen.h
b/base/applications/mspaint/fullscreen.h
index 4ff4779290..2a41d09978 100644
--- a/base/applications/mspaint/fullscreen.h
+++ b/base/applications/mspaint/fullscreen.h
@@ -6,6 +6,8 @@
* PROGRAMMERS: Benedikt Freisen
*/
+#pragma once
+
class CFullscreenWindow : public CWindowImpl<CFullscreenWindow>
{
public:
diff --git a/base/applications/mspaint/globalvar.h
b/base/applications/mspaint/globalvar.h
index d584eb6375..ab42977518 100644
--- a/base/applications/mspaint/globalvar.h
+++ b/base/applications/mspaint/globalvar.h
@@ -6,6 +6,8 @@
* PROGRAMMERS: Benedikt Freisen
*/
+#pragma once
+
/* VARIABLES declared in main.cpp ***********************************/
class RegistrySettings;
diff --git a/base/applications/mspaint/history.h b/base/applications/mspaint/history.h
index c87ff60f7b..7ed0409cfe 100644
--- a/base/applications/mspaint/history.h
+++ b/base/applications/mspaint/history.h
@@ -6,6 +6,8 @@
* PROGRAMMERS: Benedikt Freisen
*/
+#pragma once
+
class ImageModel
{
private:
diff --git a/base/applications/mspaint/imgarea.h b/base/applications/mspaint/imgarea.h
index 79cc13ddf5..2fd0074b25 100644
--- a/base/applications/mspaint/imgarea.h
+++ b/base/applications/mspaint/imgarea.h
@@ -8,6 +8,8 @@
* Katayama Hirofumi MZ
*/
+#pragma once
+
class CImgAreaWindow : public CWindowImpl<CMainWindow>
{
public:
diff --git a/base/applications/mspaint/miniature.h
b/base/applications/mspaint/miniature.h
index 44d81f4987..ce79455a23 100644
--- a/base/applications/mspaint/miniature.h
+++ b/base/applications/mspaint/miniature.h
@@ -7,6 +7,8 @@
* PROGRAMMERS: Benedikt Freisen
*/
+#pragma once
+
class CMiniatureWindow : public CWindowImpl<CMiniatureWindow>
{
public:
diff --git a/base/applications/mspaint/mouse.h b/base/applications/mspaint/mouse.h
index e26678165b..59f13fd742 100644
--- a/base/applications/mspaint/mouse.h
+++ b/base/applications/mspaint/mouse.h
@@ -6,6 +6,8 @@
* PROGRAMMERS: Benedikt Freisen
*/
+#pragma once
+
void placeSelWin(void);
void startPaintingL(HDC hdc, LONG x, LONG y, COLORREF fg, COLORREF bg);
diff --git a/base/applications/mspaint/palette.h b/base/applications/mspaint/palette.h
index 3cb0e0784b..ca84fc5e9d 100644
--- a/base/applications/mspaint/palette.h
+++ b/base/applications/mspaint/palette.h
@@ -6,6 +6,8 @@
* PROGRAMMERS: Benedikt Freisen
*/
+#pragma once
+
class CPaletteWindow : public CWindowImpl<CPaletteWindow>
{
public:
diff --git a/base/applications/mspaint/palettemodel.h
b/base/applications/mspaint/palettemodel.h
index 65ccb99252..04c86dbc66 100644
--- a/base/applications/mspaint/palettemodel.h
+++ b/base/applications/mspaint/palettemodel.h
@@ -6,6 +6,8 @@
* PROGRAMMERS: Benedikt Freisen
*/
+#pragma once
+
/* CLASSES **********************************************************/
class PaletteModel
diff --git a/base/applications/mspaint/registry.h b/base/applications/mspaint/registry.h
index 06beac503f..98cd407237 100644
--- a/base/applications/mspaint/registry.h
+++ b/base/applications/mspaint/registry.h
@@ -6,6 +6,8 @@
* PROGRAMMERS: Benedikt Freisen
*/
+#pragma once
+
class RegistrySettings
{
private:
diff --git a/base/applications/mspaint/scrollbox.h
b/base/applications/mspaint/scrollbox.h
index bad3bc7209..54c42b3d8a 100644
--- a/base/applications/mspaint/scrollbox.h
+++ b/base/applications/mspaint/scrollbox.h
@@ -6,6 +6,8 @@
* PROGRAMMERS: Benedikt Freisen
*/
+#pragma once
+
class CScrollboxWindow : public CWindowImpl<CScrollboxWindow>
{
public:
diff --git a/base/applications/mspaint/selection.h
b/base/applications/mspaint/selection.h
index e2dacf2b14..536d4aa9a7 100644
--- a/base/applications/mspaint/selection.h
+++ b/base/applications/mspaint/selection.h
@@ -7,6 +7,8 @@
* Katayama Hirofumi MZ
*/
+#pragma once
+
class CSelectionWindow : public CWindowImpl<CSelectionWindow>
{
public:
diff --git a/base/applications/mspaint/selectionmodel.h
b/base/applications/mspaint/selectionmodel.h
index d5ddf1f1d2..073cef7ea1 100644
--- a/base/applications/mspaint/selectionmodel.h
+++ b/base/applications/mspaint/selectionmodel.h
@@ -6,6 +6,8 @@
* PROGRAMMERS: Benedikt Freisen
*/
+#pragma once
+
/* DEFINES **********************************************************/
#define ACTION_MOVE 0
diff --git a/base/applications/mspaint/sizebox.h b/base/applications/mspaint/sizebox.h
index afe89ba283..551f0e6bfb 100644
--- a/base/applications/mspaint/sizebox.h
+++ b/base/applications/mspaint/sizebox.h
@@ -7,6 +7,8 @@
* Katayama Hirofumi MZ
*/
+#pragma once
+
class CSizeboxWindow : public CWindowImpl<CSizeboxWindow>
{
public:
diff --git a/base/applications/mspaint/textedit.h b/base/applications/mspaint/textedit.h
index 4c44c2d7e6..61eac3675a 100644
--- a/base/applications/mspaint/textedit.h
+++ b/base/applications/mspaint/textedit.h
@@ -6,6 +6,8 @@
* PROGRAMMERS: Benedikt Freisen
*/
+#pragma once
+
class CTextEditWindow : public CWindowImpl<CTextEditWindow>
{
public:
diff --git a/base/applications/mspaint/toolbox.h b/base/applications/mspaint/toolbox.h
index 802b198ded..772ff2df1e 100644
--- a/base/applications/mspaint/toolbox.h
+++ b/base/applications/mspaint/toolbox.h
@@ -7,6 +7,8 @@
* PROGRAMMERS: Benedikt Freisen
*/
+#pragma once
+
class CToolBox : public CWindowImpl<CMainWindow>
{
public:
diff --git a/base/applications/mspaint/toolsettings.h
b/base/applications/mspaint/toolsettings.h
index da8dc196ef..4b06cb7960 100644
--- a/base/applications/mspaint/toolsettings.h
+++ b/base/applications/mspaint/toolsettings.h
@@ -6,6 +6,8 @@
* PROGRAMMERS: Benedikt Freisen
*/
+#pragma once
+
class CToolSettingsWindow : public CWindowImpl<CToolSettingsWindow>
{
public:
diff --git a/base/applications/mspaint/toolsmodel.h
b/base/applications/mspaint/toolsmodel.h
index 62855633c2..49ab71bcc3 100644
--- a/base/applications/mspaint/toolsmodel.h
+++ b/base/applications/mspaint/toolsmodel.h
@@ -6,6 +6,8 @@
* PROGRAMMERS: Benedikt Freisen
*/
+#pragma once
+
/* CLASSES **********************************************************/
class ToolsModel
diff --git a/base/applications/mspaint/winproc.h b/base/applications/mspaint/winproc.h
index 57da913b92..6b212f619b 100644
--- a/base/applications/mspaint/winproc.h
+++ b/base/applications/mspaint/winproc.h
@@ -7,6 +7,8 @@
* PROGRAMMERS: Benedikt Freisen
*/
+#pragma once
+
class CMainWindow : public CWindowImpl<CMainWindow>
{
public: