include/vcl/BitmapAccessMode.hxx               |    5 +----
 include/vcl/BitmapBuffer.hxx                   |    5 +----
 include/vcl/BitmapColor.hxx                    |    5 +----
 include/vcl/BitmapTools.hxx                    |    5 +----
 include/vcl/bitmap.hxx                         |    5 +----
 include/vcl/bitmap/BitmapFilterStackBlur.hxx   |    5 +----
 slideshow/source/inc/activitiesfactory.hxx     |    5 +----
 slideshow/source/inc/activitiesqueue.hxx       |    4 +---
 slideshow/source/inc/activity.hxx              |    5 +----
 slideshow/source/inc/animatableshape.hxx       |    5 +----
 slideshow/source/inc/animatedsprite.hxx        |    5 +----
 slideshow/source/inc/animation.hxx             |    5 +----
 slideshow/source/inc/animationactivity.hxx     |    5 +----
 slideshow/source/inc/animationeventhandler.hxx |    5 +----
 slideshow/source/inc/animationfactory.hxx      |    5 +----
 slideshow/source/inc/animationnode.hxx         |    5 +----
 slideshow/source/inc/animationnodefactory.hxx  |    5 +----
 slideshow/source/inc/attributemap.hxx          |    5 +----
 18 files changed, 18 insertions(+), 71 deletions(-)

New commits:
commit 10f42f6ddcb18aa3c9ab5528f0ee5464f12c21ce
Author:     ayagamal-tech <[email protected]>
AuthorDate: Fri Jan 9 13:55:38 2026 +0200
Commit:     Ilmari Lauhakangas <[email protected]>
CommitDate: Mon Jan 12 15:56:36 2026 +0100

    tdf#143148 use #pragma once in slideshow and bitmap
    
    Change-Id: I318d11da38ee8fc7d4aa48c4e3d6b9a3fd6b24de
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196921
    Tested-by: Jenkins
    Reviewed-by: Ilmari Lauhakangas <[email protected]>

diff --git a/include/vcl/BitmapAccessMode.hxx b/include/vcl/BitmapAccessMode.hxx
index 66cc2b56bcd9..a47c5b3be057 100644
--- a/include/vcl/BitmapAccessMode.hxx
+++ b/include/vcl/BitmapAccessMode.hxx
@@ -17,8 +17,7 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#ifndef INCLUDED_VCL_BITMAPACCESSMODE_HXX
-#define INCLUDED_VCL_BITMAPACCESSMODE_HXX
+#pragma once
 
 enum class BitmapAccessMode
 {
@@ -27,6 +26,4 @@ enum class BitmapAccessMode
     Write
 };
 
-#endif // INCLUDED_VCL_BITMAPACCESSMODE_HXX
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/vcl/BitmapBuffer.hxx b/include/vcl/BitmapBuffer.hxx
index b5444afc877b..30d80d65fb5c 100644
--- a/include/vcl/BitmapBuffer.hxx
+++ b/include/vcl/BitmapBuffer.hxx
@@ -17,8 +17,7 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#ifndef INCLUDED_VCL_BITMAPBUFFER_HXX
-#define INCLUDED_VCL_BITMAPBUFFER_HXX
+#pragma once
 
 #include <sal/config.h>
 
@@ -47,6 +46,4 @@ VCL_DLLPUBLIC std::optional<BitmapBuffer> StretchAndConvert(
     const BitmapBuffer& rSrcBuffer, const SalTwoRect& rTwoRect,
     ScanlineFormat nDstBitmapFormat, std::optional<BitmapPalette> pDstPal = 
std::nullopt );
 
-#endif // INCLUDED_VCL_BITMAPBUFFER_HXX
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/vcl/BitmapColor.hxx b/include/vcl/BitmapColor.hxx
index b5364b4d146f..8df4518adf18 100644
--- a/include/vcl/BitmapColor.hxx
+++ b/include/vcl/BitmapColor.hxx
@@ -17,8 +17,7 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#ifndef INCLUDED_VCL_BITMAPCOLOR_HXX
-#define INCLUDED_VCL_BITMAPCOLOR_HXX
+#pragma once
 
 #include <vcl/dllapi.h>
 #include <tools/color.hxx>
@@ -77,6 +76,4 @@ inline void BitmapColor::SetIndex( sal_uInt8 cIndex )
     SetBlue(cIndex);
 }
 
-#endif // INCLUDED_VCL_BITMAPCOLOR_HXX
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/vcl/BitmapTools.hxx b/include/vcl/BitmapTools.hxx
index fd1d0efc3b5d..27b78ceb230d 100644
--- a/include/vcl/BitmapTools.hxx
+++ b/include/vcl/BitmapTools.hxx
@@ -7,8 +7,7 @@
  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  */
 
-#ifndef INCLUDED_VCL_BITMAP_TOOLS_HXX
-#define INCLUDED_VCL_BITMAP_TOOLS_HXX
+#pragma once
 
 #include <config_cairo_canvas.h>
 #include <config_wasm_strip.h>
@@ -109,6 +108,4 @@ BitmapColor unpremultiply(const BitmapColor c);
 
 } // end vcl::bitmap
 
-#endif // INCLUDED_VCL_BITMAP_TOOLS_HXX
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/vcl/bitmap.hxx b/include/vcl/bitmap.hxx
index 21f6dd1caf9d..43a8bf9a32cb 100644
--- a/include/vcl/bitmap.hxx
+++ b/include/vcl/bitmap.hxx
@@ -17,8 +17,7 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#ifndef INCLUDED_VCL_BITMAP_HXX
-#define INCLUDED_VCL_BITMAP_HXX
+#pragma once
 
 #include <sal/config.h>
 
@@ -804,6 +803,4 @@ Bitmap createAlphaBlendFrame(
     const Color& rColorBottomRight,
     const Color& rColorBottomLeft);
 
-#endif // INCLUDED_VCL_BITMAP_HXX
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/vcl/bitmap/BitmapFilterStackBlur.hxx 
b/include/vcl/bitmap/BitmapFilterStackBlur.hxx
index 3120fdea0cd8..1b30bb018907 100644
--- a/include/vcl/bitmap/BitmapFilterStackBlur.hxx
+++ b/include/vcl/bitmap/BitmapFilterStackBlur.hxx
@@ -8,8 +8,7 @@
  *
  */
 
-#ifndef INCLUDED_VCL_BITMAPFILTERSTACKBLUR_HXX
-#define INCLUDED_VCL_BITMAPFILTERSTACKBLUR_HXX
+#pragma once
 
 #include <vcl/bitmap/BitmapFilter.hxx>
 
@@ -24,6 +23,4 @@ public:
     virtual Bitmap execute(Bitmap const& rBitmap) const override;
 };
 
-#endif // INCLUDED_VCL_BITMAPFILTERSTACKBLUR_HXX
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/slideshow/source/inc/activitiesfactory.hxx 
b/slideshow/source/inc/activitiesfactory.hxx
index 7a06953fcabb..9f0d44cf7b61 100644
--- a/slideshow/source/inc/activitiesfactory.hxx
+++ b/slideshow/source/inc/activitiesfactory.hxx
@@ -17,8 +17,7 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#ifndef INCLUDED_SLIDESHOW_SOURCE_INC_ACTIVITIESFACTORY_HXX
-#define INCLUDED_SLIDESHOW_SOURCE_INC_ACTIVITIESFACTORY_HXX
+#pragma once
 
 #include <com/sun/star/animations/XAnimate.hpp>
 #include <com/sun/star/animations/XAnimateColor.hpp>
@@ -304,6 +303,4 @@ namespace slideshow::internal::ActivitiesFactory
 
 } // namespace presentation::internal
 
-#endif // INCLUDED_SLIDESHOW_SOURCE_INC_ACTIVITIESFACTORY_HXX
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/slideshow/source/inc/activitiesqueue.hxx 
b/slideshow/source/inc/activitiesqueue.hxx
index 728ce2d60409..470e6bbf98e9 100644
--- a/slideshow/source/inc/activitiesqueue.hxx
+++ b/slideshow/source/inc/activitiesqueue.hxx
@@ -17,8 +17,7 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#ifndef INCLUDED_SLIDESHOW_SOURCE_INC_ACTIVITIESQUEUE_HXX
-#define INCLUDED_SLIDESHOW_SOURCE_INC_ACTIVITIESQUEUE_HXX
+#pragma once
 
 #include <deque>
 
@@ -116,6 +115,5 @@ namespace slideshow::internal
         };
 
 }
-#endif // INCLUDED_SLIDESHOW_SOURCE_INC_ACTIVITIESQUEUE_HXX
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/slideshow/source/inc/activity.hxx 
b/slideshow/source/inc/activity.hxx
index 5de30c79d9eb..2de13fa7df01 100644
--- a/slideshow/source/inc/activity.hxx
+++ b/slideshow/source/inc/activity.hxx
@@ -17,8 +17,7 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#ifndef INCLUDED_SLIDESHOW_SOURCE_INC_ACTIVITY_HXX
-#define INCLUDED_SLIDESHOW_SOURCE_INC_ACTIVITY_HXX
+#pragma once
 
 #include <memory>
 
@@ -84,6 +83,4 @@ namespace slideshow::internal
 
 }
 
-#endif // INCLUDED_SLIDESHOW_SOURCE_INC_ACTIVITY_HXX
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/slideshow/source/inc/animatableshape.hxx 
b/slideshow/source/inc/animatableshape.hxx
index 7cefad0f6086..05d45ab1c076 100644
--- a/slideshow/source/inc/animatableshape.hxx
+++ b/slideshow/source/inc/animatableshape.hxx
@@ -17,8 +17,7 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#ifndef INCLUDED_SLIDESHOW_SOURCE_INC_ANIMATABLESHAPE_HXX
-#define INCLUDED_SLIDESHOW_SOURCE_INC_ANIMATABLESHAPE_HXX
+#pragma once
 
 #include <memory>
 
@@ -74,6 +73,4 @@ namespace slideshow::internal
 
 }
 
-#endif // INCLUDED_SLIDESHOW_SOURCE_INC_ANIMATABLESHAPE_HXX
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/slideshow/source/inc/animatedsprite.hxx 
b/slideshow/source/inc/animatedsprite.hxx
index f298aaa52fb3..1615ecb0804d 100644
--- a/slideshow/source/inc/animatedsprite.hxx
+++ b/slideshow/source/inc/animatedsprite.hxx
@@ -17,8 +17,7 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#ifndef INCLUDED_SLIDESHOW_SOURCE_INC_ANIMATEDSPRITE_HXX
-#define INCLUDED_SLIDESHOW_SOURCE_INC_ANIMATEDSPRITE_HXX
+#pragma once
 
 #include <basegfx/matrix/b2dhommatrix.hxx>
 #include <basegfx/point/b2dpoint.hxx>
@@ -154,6 +153,4 @@ namespace slideshow::internal
 
 }
 
-#endif // INCLUDED_SLIDESHOW_SOURCE_INC_ANIMATEDSPRITE_HXX
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/slideshow/source/inc/animation.hxx 
b/slideshow/source/inc/animation.hxx
index a9264d76b79a..1590932ab0f1 100644
--- a/slideshow/source/inc/animation.hxx
+++ b/slideshow/source/inc/animation.hxx
@@ -17,8 +17,7 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#ifndef INCLUDED_SLIDESHOW_SOURCE_INC_ANIMATION_HXX
-#define INCLUDED_SLIDESHOW_SOURCE_INC_ANIMATION_HXX
+#pragma once
 
 #include "animatableshape.hxx"
 #include "shapeattributelayer.hxx"
@@ -79,6 +78,4 @@ namespace slideshow::internal
 
 }
 
-#endif // INCLUDED_SLIDESHOW_SOURCE_INC_ANIMATION_HXX
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/slideshow/source/inc/animationactivity.hxx 
b/slideshow/source/inc/animationactivity.hxx
index 20454aa59ed7..338fb7658802 100644
--- a/slideshow/source/inc/animationactivity.hxx
+++ b/slideshow/source/inc/animationactivity.hxx
@@ -17,8 +17,7 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#ifndef INCLUDED_SLIDESHOW_SOURCE_INC_ANIMATIONACTIVITY_HXX
-#define INCLUDED_SLIDESHOW_SOURCE_INC_ANIMATIONACTIVITY_HXX
+#pragma once
 
 #include "activity.hxx"
 #include "animatableshape.hxx"
@@ -61,6 +60,4 @@ namespace slideshow::internal
 
 }
 
-#endif // INCLUDED_SLIDESHOW_SOURCE_INC_ANIMATIONACTIVITY_HXX
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/slideshow/source/inc/animationeventhandler.hxx 
b/slideshow/source/inc/animationeventhandler.hxx
index 0c66ffd5aaf8..a0012f109b6e 100644
--- a/slideshow/source/inc/animationeventhandler.hxx
+++ b/slideshow/source/inc/animationeventhandler.hxx
@@ -17,8 +17,7 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#ifndef INCLUDED_SLIDESHOW_SOURCE_INC_ANIMATIONEVENTHANDLER_HXX
-#define INCLUDED_SLIDESHOW_SOURCE_INC_ANIMATIONEVENTHANDLER_HXX
+#pragma once
 
 #include <memory>
 #include "animationnode.hxx"
@@ -57,6 +56,4 @@ namespace slideshow::internal
 
 }
 
-#endif // INCLUDED_SLIDESHOW_SOURCE_INC_ANIMATIONEVENTHANDLER_HXX
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/slideshow/source/inc/animationfactory.hxx 
b/slideshow/source/inc/animationfactory.hxx
index 3004c71308a9..fd5da109d0a3 100644
--- a/slideshow/source/inc/animationfactory.hxx
+++ b/slideshow/source/inc/animationfactory.hxx
@@ -17,8 +17,7 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#ifndef INCLUDED_SLIDESHOW_SOURCE_INC_ANIMATIONFACTORY_HXX
-#define INCLUDED_SLIDESHOW_SOURCE_INC_ANIMATIONFACTORY_HXX
+#pragma once
 
 
 #include "numberanimation.hxx"
@@ -145,6 +144,4 @@ namespace slideshow::internal
 
 }
 
-#endif // INCLUDED_SLIDESHOW_SOURCE_INC_ANIMATIONFACTORY_HXX
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/slideshow/source/inc/animationnode.hxx 
b/slideshow/source/inc/animationnode.hxx
index 14fd21ce9894..690c2e0e43f6 100644
--- a/slideshow/source/inc/animationnode.hxx
+++ b/slideshow/source/inc/animationnode.hxx
@@ -16,8 +16,7 @@
  *   except in compliance with the License. You may obtain a copy of
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
-#ifndef INCLUDED_SLIDESHOW_SOURCE_INC_ANIMATIONNODE_HXX
-#define INCLUDED_SLIDESHOW_SOURCE_INC_ANIMATIONNODE_HXX
+#pragma once
 
 #include "disposable.hxx"
 
@@ -150,6 +149,4 @@ public:
 
 } // namespace presentation::internal
 
-#endif // INCLUDED_SLIDESHOW_SOURCE_INC_ANIMATIONNODE_HXX
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/slideshow/source/inc/animationnodefactory.hxx 
b/slideshow/source/inc/animationnodefactory.hxx
index af424ec5092b..a67d521047d2 100644
--- a/slideshow/source/inc/animationnodefactory.hxx
+++ b/slideshow/source/inc/animationnodefactory.hxx
@@ -17,8 +17,7 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#ifndef INCLUDED_SLIDESHOW_SOURCE_INC_ANIMATIONNODEFACTORY_HXX
-#define INCLUDED_SLIDESHOW_SOURCE_INC_ANIMATIONNODEFACTORY_HXX
+#pragma once
 
 #include <com/sun/star/uno/Reference.hxx>
 #include <com/sun/star/animations/XAnimationNode.hpp>
@@ -49,6 +48,4 @@ namespace slideshow::internal::AnimationNodeFactory
 
 }
 
-#endif // INCLUDED_SLIDESHOW_SOURCE_INC_ANIMATIONNODEFACTORY_HXX
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/slideshow/source/inc/attributemap.hxx 
b/slideshow/source/inc/attributemap.hxx
index 1cd9b0f300ae..4d7b651be941 100644
--- a/slideshow/source/inc/attributemap.hxx
+++ b/slideshow/source/inc/attributemap.hxx
@@ -17,8 +17,7 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#ifndef INCLUDED_SLIDESHOW_SOURCE_INC_ATTRIBUTEMAP_HXX
-#define INCLUDED_SLIDESHOW_SOURCE_INC_ATTRIBUTEMAP_HXX
+#pragma once
 
 #include <rtl/ustring.hxx>
 
@@ -66,6 +65,4 @@ namespace slideshow::internal
 
 }
 
-#endif // INCLUDED_SLIDESHOW_SOURCE_INC_ATTRIBUTEMAP_HXX
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Reply via email to