summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authoranfanite396 <dipamt1729@gmail.com>2023-02-01 21:27:15 +0530
committerJulien Nabet <serval2412@yahoo.fr>2023-02-01 17:56:16 +0000
commit31605a4f46cbe5a231122da9bfb07c859522ec3d (patch)
tree8fdc1f8d75bb5e786898e6e0480cac6322a7d088 /vcl
parentb1fda9b2c4986ad44245020b98ddcc2e81c299bf (diff)
tdf#143148 Use pragma once instead of include guards
Change-Id: I49ee5a87b2a0fb093095de74ab039ebdd91762fe Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146461 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/inc/vcleventlisteners.hxx5
-rw-r--r--vcl/inc/vclstatuslistener.hxx6
-rw-r--r--vcl/inc/watchdog.hxx5
-rw-r--r--vcl/inc/widgetdraw/WidgetDefinition.hxx5
-rw-r--r--vcl/inc/widgetdraw/WidgetDefinitionReader.hxx5
-rw-r--r--vcl/inc/win/DWriteTextRenderer.hxx5
-rw-r--r--vcl/inc/win/scoped_gdi.hxx5
-rw-r--r--vcl/inc/win/wingdiimpl.hxx5
-rw-r--r--vcl/inc/wizdlg.hxx6
9 files changed, 9 insertions, 38 deletions
diff --git a/vcl/inc/vcleventlisteners.hxx b/vcl/inc/vcleventlisteners.hxx
index a1e34d397d02..4ae223dc7a47 100644
--- a/vcl/inc/vcleventlisteners.hxx
+++ b/vcl/inc/vcleventlisteners.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_VCL_INC_VCLEVENTLISTENERS_HXX
-#define INCLUDED_VCL_INC_VCLEVENTLISTENERS_HXX
+#pragma once
#include <vector>
@@ -34,6 +33,4 @@ private:
mutable bool m_updated = false;
};
-#endif // INCLUDED_VCL_INC_VCLEVENTLISTENERS_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/vclstatuslistener.hxx b/vcl/inc/vclstatuslistener.hxx
index 2335a66e7343..aedcf3c70ead 100644
--- a/vcl/inc/vclstatuslistener.hxx
+++ b/vcl/inc/vclstatuslistener.hxx
@@ -7,8 +7,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
-#ifndef INCLUDED_VCL_VCLSTATUSLISTENER_HXX
-#define INCLUDED_VCL_VCLSTATUSLISTENER_HXX
+#pragma once
#include <cppuhelper/implbase.hxx>
#include <comphelper/processfactory.hxx>
@@ -90,7 +89,4 @@ void VclStatusListener<T>::dispose()
mWidget.clear();
}
-
-#endif // INCLUDED_VCL_VCLSTATUSLISTENER_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/watchdog.hxx b/vcl/inc/watchdog.hxx
index 9202e432f07a..6e21461fa8b2 100644
--- a/vcl/inc/watchdog.hxx
+++ b/vcl/inc/watchdog.hxx
@@ -7,8 +7,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
-#ifndef INCLUDED_VCL_INC_WATCHDOG_H
-#define INCLUDED_VCL_INC_WATCHDOG_H
+#pragma once
#include <sal/config.h>
#include <salhelper/thread.hxx>
@@ -27,6 +26,4 @@ public:
static void stop();
};
-#endif // INCLUDED_VCL_INC_WATCHDOG_H
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/widgetdraw/WidgetDefinition.hxx b/vcl/inc/widgetdraw/WidgetDefinition.hxx
index 7ba1ce0e8ae6..4176cc661485 100644
--- a/vcl/inc/widgetdraw/WidgetDefinition.hxx
+++ b/vcl/inc/widgetdraw/WidgetDefinition.hxx
@@ -8,8 +8,7 @@
*
*/
-#ifndef INCLUDED_VCL_INC_WIDGETDEFINITION_HXX
-#define INCLUDED_VCL_INC_WIDGETDEFINITION_HXX
+#pragma once
#include <vcl/dllapi.h>
#include <memory>
@@ -291,6 +290,4 @@ public:
} // end vcl namespace
-#endif // INCLUDED_VCL_INC_WIDGETDEFINITION_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/widgetdraw/WidgetDefinitionReader.hxx b/vcl/inc/widgetdraw/WidgetDefinitionReader.hxx
index fe2ebb6d613c..98e8154e151a 100644
--- a/vcl/inc/widgetdraw/WidgetDefinitionReader.hxx
+++ b/vcl/inc/widgetdraw/WidgetDefinitionReader.hxx
@@ -8,8 +8,7 @@
*
*/
-#ifndef INCLUDED_VCL_INC_WIDGETDEFINITIONREADER_HXX
-#define INCLUDED_VCL_INC_WIDGETDEFINITIONREADER_HXX
+#pragma once
#include <vcl/dllapi.h>
#include <widgetdraw/WidgetDefinition.hxx>
@@ -40,6 +39,4 @@ public:
} // end vcl namespace
-#endif // INCLUDED_VCL_INC_WIDGETDEFINITIONREADER_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/win/DWriteTextRenderer.hxx b/vcl/inc/win/DWriteTextRenderer.hxx
index 67094052ebb5..d4bb45e5895b 100644
--- a/vcl/inc/win/DWriteTextRenderer.hxx
+++ b/vcl/inc/win/DWriteTextRenderer.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_VCL_INC_WIN_DWRITERENDERER_HXX
-#define INCLUDED_VCL_INC_WIN_DWRITERENDERER_HXX
+#pragma once
#include <usp10.h>
#include <d2d1.h>
@@ -87,6 +86,4 @@ private:
D2D1::Matrix3x2F maTransform;
};
-#endif // INCLUDED_VCL_INC_WIN_DWRITERENDERER_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/win/scoped_gdi.hxx b/vcl/inc/win/scoped_gdi.hxx
index d02ad9545749..86846e9860d6 100644
--- a/vcl/inc/win/scoped_gdi.hxx
+++ b/vcl/inc/win/scoped_gdi.hxx
@@ -7,8 +7,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
-#ifndef INCLUDED_VCL_INC_WIN_SCOPED_GDI_HXX
-#define INCLUDED_VCL_INC_WIN_SCOPED_GDI_HXX
+#pragma once
#include <win/svsys.h>
#include <win/wincomp.hxx>
@@ -70,6 +69,4 @@ private:
HDC m_hDC;
};
-#endif // INCLUDED_VCL_INC_WIN_SCOPED_GDI_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
diff --git a/vcl/inc/win/wingdiimpl.hxx b/vcl/inc/win/wingdiimpl.hxx
index d9616292b950..94a1ec8f84f4 100644
--- a/vcl/inc/win/wingdiimpl.hxx
+++ b/vcl/inc/win/wingdiimpl.hxx
@@ -7,8 +7,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
-#ifndef INCLUDED_VCL_INC_WIN_WINGDIIMPL_HXX
-#define INCLUDED_VCL_INC_WIN_WINGDIIMPL_HXX
+#pragma once
#include <win/salgdi.h>
#include <ControlCacheKey.hxx>
@@ -46,6 +45,4 @@ public:
virtual void ClearNativeControlCache() {}
};
-#endif // INCLUDED_VCL_INC_WIN_WINGDIIMPL_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/wizdlg.hxx b/vcl/inc/wizdlg.hxx
index 31bd376168b6..04f6e88c4acd 100644
--- a/vcl/inc/wizdlg.hxx
+++ b/vcl/inc/wizdlg.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_VCL_WIZDLG_HXX
-#define INCLUDED_VCL_WIZDLG_HXX
+#pragma once
#include <memory>
#include <vcl/toolkit/button.hxx>
@@ -279,7 +278,4 @@ namespace vcl
};
} // namespace vcl
-
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */