summaryrefslogtreecommitdiff
path: root/vcl/inc/win
diff options
context:
space:
mode:
authorTaichi Haradaguchi <20001722@ymail.ne.jp>2023-11-19 12:28:28 +0900
committerTaichi Haradaguchi <20001722@ymail.ne.jp>2023-11-19 09:14:51 +0100
commit7618c791a39e74b0f8291ff28f65df78cfa20301 (patch)
treea4aa5f2c4f25a3086f0c3e3a65f0b4e87b08dcfc /vcl/inc/win
parenta688f401980646577d353e96d271499b9b720667 (diff)
tdf#143148: Use pragma once instead of include guards in vcl/inc/win
Change-Id: I57db27a6cbd45ec9f1ae666a3b8da23bbf5c20de Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159649 Tested-by: Jenkins Reviewed-by: Taichi Haradaguchi <20001722@ymail.ne.jp>
Diffstat (limited to 'vcl/inc/win')
-rw-r--r--vcl/inc/win/salbmp.h5
-rw-r--r--vcl/inc/win/salframe.h5
-rw-r--r--vcl/inc/win/salinst.h5
-rw-r--r--vcl/inc/win/salobj.h5
-rw-r--r--vcl/inc/win/salprn.h5
-rw-r--r--vcl/inc/win/salsys.h5
-rw-r--r--vcl/inc/win/saltimer.h5
-rw-r--r--vcl/inc/win/salvd.h6
-rw-r--r--vcl/inc/win/svsys.h5
9 files changed, 9 insertions, 37 deletions
diff --git a/vcl/inc/win/salbmp.h b/vcl/inc/win/salbmp.h
index c83b1675331f..2edf291342cc 100644
--- a/vcl/inc/win/salbmp.h
+++ b/vcl/inc/win/salbmp.h
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_VCL_INC_WIN_SALBMP_H
-#define INCLUDED_VCL_INC_WIN_SALBMP_H
+#pragma once
#include <tools/gen.hxx>
#include <win/wincomp.hxx>
@@ -93,6 +92,4 @@ public:
virtual const basegfx::SystemDependentDataHolder* accessSystemDependentDataHolder() const override;
};
-#endif // INCLUDED_VCL_INC_WIN_SALBMP_H
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/win/salframe.h b/vcl/inc/win/salframe.h
index 66da5e3a976f..de72c089b57b 100644
--- a/vcl/inc/win/salframe.h
+++ b/vcl/inc/win/salframe.h
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_VCL_INC_WIN_SALFRAME_H
-#define INCLUDED_VCL_INC_WIN_SALFRAME_H
+#pragma once
#include <sal/config.h>
@@ -160,6 +159,4 @@ namespace vcl_sal {
LONG nSymbol );
}
-#endif // INCLUDED_VCL_INC_WIN_SALFRAME_H
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/win/salinst.h b/vcl/inc/win/salinst.h
index 7af6e007b562..9c6ca82d38bd 100644
--- a/vcl/inc/win/salinst.h
+++ b/vcl/inc/win/salinst.h
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_VCL_INC_WIN_SALINST_H
-#define INCLUDED_VCL_INC_WIN_SALINST_H
+#pragma once
#include <sal/config.h>
@@ -86,6 +85,4 @@ SalFrame* ImplSalCreateFrame( WinSalInstance* pInst, HWND hWndParent, SalFrameSt
SalObject* ImplSalCreateObject( WinSalInstance* pInst, WinSalFrame* pParent );
HWND ImplSalReCreateHWND( HWND hWndParent, HWND oldhWnd, bool bAsChild );
-#endif // INCLUDED_VCL_INC_WIN_SALINST_H
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/win/salobj.h b/vcl/inc/win/salobj.h
index e76c4787eb71..37bcf0317866 100644
--- a/vcl/inc/win/salobj.h
+++ b/vcl/inc/win/salobj.h
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_VCL_INC_WIN_SALOBJ_H
-#define INCLUDED_VCL_INC_WIN_SALOBJ_H
+#pragma once
#include <salobj.hxx>
@@ -50,6 +49,4 @@ public:
virtual const SystemEnvData* GetSystemData() const override;
};
-#endif // INCLUDED_VCL_INC_WIN_SALOBJ_H
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/win/salprn.h b/vcl/inc/win/salprn.h
index 2d02aa5b0e54..e1bbb665e29d 100644
--- a/vcl/inc/win/salprn.h
+++ b/vcl/inc/win/salprn.h
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_VCL_INC_WIN_SALPRN_H
-#define INCLUDED_VCL_INC_WIN_SALPRN_H
+#pragma once
#include <salprn.hxx>
@@ -113,6 +112,4 @@ public:
bool isValid() const { return mbValid && mhDC; }
};
-#endif // INCLUDED_VCL_INC_WIN_SALPRN_H
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/win/salsys.h b/vcl/inc/win/salsys.h
index cf1a6ecb4419..ae94bb9e1a5d 100644
--- a/vcl/inc/win/salsys.h
+++ b/vcl/inc/win/salsys.h
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_VCL_INC_WIN_SALSYS_H
-#define INCLUDED_VCL_INC_WIN_SALSYS_H
+#pragma once
#include <salsys.hxx>
@@ -65,6 +64,4 @@ public:
sal_IntPtr /*LPRECT*/ );
};
-#endif // INCLUDED_VCL_INC_WIN_SALSYS_H
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/win/saltimer.h b/vcl/inc/win/saltimer.h
index a467de815d85..827c08ab8305 100644
--- a/vcl/inc/win/saltimer.h
+++ b/vcl/inc/win/saltimer.h
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_VCL_INC_WIN_SALTIMER_H
-#define INCLUDED_VCL_INC_WIN_SALTIMER_H
+#pragma once
#include <saltimer.hxx>
@@ -81,6 +80,4 @@ inline bool WinSalTimer::GetForceRealTimer() const
return m_bForceRealTimer;
}
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/win/salvd.h b/vcl/inc/win/salvd.h
index 7a776056c3a2..66833f99f18a 100644
--- a/vcl/inc/win/salvd.h
+++ b/vcl/inc/win/salvd.h
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_VCL_INC_WIN_SALVD_H
-#define INCLUDED_VCL_INC_WIN_SALVD_H
+#pragma once
#include <sal/config.h>
#include <win/scoped_gdi.hxx>
@@ -64,7 +63,4 @@ public:
virtual tools::Long GetHeight() const override { return mnHeight; }
};
-
-#endif // INCLUDED_VCL_INC_WIN_SALVD_H
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/win/svsys.h b/vcl/inc/win/svsys.h
index 44cae93cf741..8a26bf6699e4 100644
--- a/vcl/inc/win/svsys.h
+++ b/vcl/inc/win/svsys.h
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_VCL_INC_WIN_SVSYS_H
-#define INCLUDED_VCL_INC_WIN_SVSYS_H
+#pragma once
#ifdef _WIN32
#ifndef INCLUDED_PRE_POST_WIN_H
@@ -28,6 +27,4 @@
#endif
#endif
-#endif // INCLUDED_VCL_INC_WIN_SVSYS_H
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */