summaryrefslogtreecommitdiff
path: root/include/cppcanvas
diff options
context:
space:
mode:
authorzdavis <zdavis@csumb.edu>2024-11-15 06:07:30 +0000
committerIlmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>2024-11-22 07:01:52 +0100
commitb61ae38fe4794e0e0ae8fd067b19d1f33dc75fda (patch)
treea530ff8da567d171b4499e9e53d98016767322a7 /include/cppcanvas
parent0d3748e5fbfb2ac8dd60d491d566075938927237 (diff)
tdf#143148 Use pragma once instead of include guards
Change-Id: Ic6796c91318bc838804ec30790f52480734e9b7f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176615 Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> Tested-by: Jenkins
Diffstat (limited to 'include/cppcanvas')
-rw-r--r--include/cppcanvas/basegfxfactory.hxx5
-rw-r--r--include/cppcanvas/bitmap.hxx5
-rw-r--r--include/cppcanvas/bitmapcanvas.hxx5
-rw-r--r--include/cppcanvas/canvas.hxx5
-rw-r--r--include/cppcanvas/canvasgraphic.hxx5
-rw-r--r--include/cppcanvas/color.hxx5
-rw-r--r--include/cppcanvas/customsprite.hxx5
-rw-r--r--include/cppcanvas/polypolygon.hxx5
-rw-r--r--include/cppcanvas/renderer.hxx5
-rw-r--r--include/cppcanvas/sprite.hxx5
-rw-r--r--include/cppcanvas/spritecanvas.hxx5
-rw-r--r--include/cppcanvas/vclfactory.hxx5
12 files changed, 12 insertions, 48 deletions
diff --git a/include/cppcanvas/basegfxfactory.hxx b/include/cppcanvas/basegfxfactory.hxx
index 611523066792..0bd75e4ed66d 100644
--- a/include/cppcanvas/basegfxfactory.hxx
+++ b/include/cppcanvas/basegfxfactory.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CPPCANVAS_BASEGFXFACTORY_HXX
-#define INCLUDED_CPPCANVAS_BASEGFXFACTORY_HXX
+#pragma once
#include <cppcanvas/canvas.hxx>
#include <cppcanvas/polypolygon.hxx>
@@ -71,6 +70,4 @@ namespace cppcanvas
}
-#endif // INCLUDED_CPPCANVAS_BASEGFXFACTORY_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/cppcanvas/bitmap.hxx b/include/cppcanvas/bitmap.hxx
index 1b163b82d479..d5b34d9285ed 100644
--- a/include/cppcanvas/bitmap.hxx
+++ b/include/cppcanvas/bitmap.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CPPCANVAS_BITMAP_HXX
-#define INCLUDED_CPPCANVAS_BITMAP_HXX
+#pragma once
#include <com/sun/star/uno/Reference.hxx>
#include <cppcanvas/canvasgraphic.hxx>
@@ -65,6 +64,4 @@ namespace cppcanvas
typedef std::shared_ptr< ::cppcanvas::Bitmap > BitmapSharedPtr;
}
-#endif // INCLUDED_CPPCANVAS_BITMAP_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/cppcanvas/bitmapcanvas.hxx b/include/cppcanvas/bitmapcanvas.hxx
index 9c3e7f843934..052092912ed1 100644
--- a/include/cppcanvas/bitmapcanvas.hxx
+++ b/include/cppcanvas/bitmapcanvas.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CPPCANVAS_BITMAPCANVAS_HXX
-#define INCLUDED_CPPCANVAS_BITMAPCANVAS_HXX
+#pragma once
#include <basegfx/vector/b2isize.hxx>
#include <cppcanvas/canvas.hxx>
@@ -44,6 +43,4 @@ namespace cppcanvas
}
-#endif // INCLUDED_CPPCANVAS_BITMAPCANVAS_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/cppcanvas/canvas.hxx b/include/cppcanvas/canvas.hxx
index 2fce102824dd..c7fea3c63342 100644
--- a/include/cppcanvas/canvas.hxx
+++ b/include/cppcanvas/canvas.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CPPCANVAS_CANVAS_HXX
-#define INCLUDED_CPPCANVAS_CANVAS_HXX
+#pragma once
#include <com/sun/star/uno/Reference.hxx>
#include <memory>
@@ -96,6 +95,4 @@ namespace cppcanvas
}
-#endif // INCLUDED_CPPCANVAS_CANVAS_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/cppcanvas/canvasgraphic.hxx b/include/cppcanvas/canvasgraphic.hxx
index ebee831f0a3b..0a9c78ef2bef 100644
--- a/include/cppcanvas/canvasgraphic.hxx
+++ b/include/cppcanvas/canvasgraphic.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CPPCANVAS_CANVASGRAPHIC_HXX
-#define INCLUDED_CPPCANVAS_CANVASGRAPHIC_HXX
+#pragma once
#include <sal/types.h>
#include <memory>
@@ -75,6 +74,4 @@ namespace cppcanvas
};
}
-#endif // INCLUDED_CPPCANVAS_CANVASGRAPHIC_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/cppcanvas/color.hxx b/include/cppcanvas/color.hxx
index 500e5953e7cc..3682832c3dd1 100644
--- a/include/cppcanvas/color.hxx
+++ b/include/cppcanvas/color.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CPPCANVAS_COLOR_HXX
-#define INCLUDED_CPPCANVAS_COLOR_HXX
+#pragma once
#include <sal/types.h>
@@ -65,6 +64,4 @@ namespace cppcanvas
}
-#endif // INCLUDED_CPPCANVAS_COLOR_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/cppcanvas/customsprite.hxx b/include/cppcanvas/customsprite.hxx
index abbd0c00bb05..52382c42b16d 100644
--- a/include/cppcanvas/customsprite.hxx
+++ b/include/cppcanvas/customsprite.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CPPCANVAS_CUSTOMSPRITE_HXX
-#define INCLUDED_CPPCANVAS_CUSTOMSPRITE_HXX
+#pragma once
#include <cppcanvas/sprite.hxx>
#include <cppcanvas/canvas.hxx>
@@ -39,6 +38,4 @@ namespace cppcanvas
typedef std::shared_ptr< ::cppcanvas::CustomSprite > CustomSpriteSharedPtr;
}
-#endif // INCLUDED_CPPCANVAS_CUSTOMSPRITE_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/cppcanvas/polypolygon.hxx b/include/cppcanvas/polypolygon.hxx
index 917ef4dafb04..04e3a61d3411 100644
--- a/include/cppcanvas/polypolygon.hxx
+++ b/include/cppcanvas/polypolygon.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CPPCANVAS_POLYPOLYGON_HXX
-#define INCLUDED_CPPCANVAS_POLYPOLYGON_HXX
+#pragma once
#include <com/sun/star/uno/Reference.hxx>
#include <cppcanvas/canvasgraphic.hxx>
@@ -71,6 +70,4 @@ namespace cppcanvas
typedef std::shared_ptr< ::cppcanvas::PolyPolygon > PolyPolygonSharedPtr;
}
-#endif // INCLUDED_CPPCANVAS_POLYPOLYGON_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/cppcanvas/renderer.hxx b/include/cppcanvas/renderer.hxx
index d71be2f09e89..036d974f4830 100644
--- a/include/cppcanvas/renderer.hxx
+++ b/include/cppcanvas/renderer.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CPPCANVAS_RENDERER_HXX
-#define INCLUDED_CPPCANVAS_RENDERER_HXX
+#pragma once
#include <sal/types.h>
#include <rtl/ustring.hxx>
@@ -135,6 +134,4 @@ namespace cppcanvas
typedef std::shared_ptr< ::cppcanvas::Renderer > RendererSharedPtr;
}
-#endif // INCLUDED_CPPCANVAS_RENDERER_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/cppcanvas/sprite.hxx b/include/cppcanvas/sprite.hxx
index 3321eb6a03a3..3c1b82d38a74 100644
--- a/include/cppcanvas/sprite.hxx
+++ b/include/cppcanvas/sprite.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CPPCANVAS_SPRITE_HXX
-#define INCLUDED_CPPCANVAS_SPRITE_HXX
+#pragma once
namespace basegfx
{
@@ -91,6 +90,4 @@ namespace cppcanvas
};
}
-#endif // INCLUDED_CPPCANVAS_SPRITE_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/cppcanvas/spritecanvas.hxx b/include/cppcanvas/spritecanvas.hxx
index c4d100dbedb9..bb7d3d2f70aa 100644
--- a/include/cppcanvas/spritecanvas.hxx
+++ b/include/cppcanvas/spritecanvas.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CPPCANVAS_SPRITECANVAS_HXX
-#define INCLUDED_CPPCANVAS_SPRITECANVAS_HXX
+#pragma once
#include <basegfx/vector/b2dsize.hxx>
#include <cppcanvas/canvas.hxx>
@@ -58,6 +57,4 @@ namespace cppcanvas
}
-#endif // INCLUDED_CPPCANVAS_SPRITECANVAS_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/cppcanvas/vclfactory.hxx b/include/cppcanvas/vclfactory.hxx
index 73867626d3c0..3d6ab24482ee 100644
--- a/include/cppcanvas/vclfactory.hxx
+++ b/include/cppcanvas/vclfactory.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CPPCANVAS_VCLFACTORY_HXX
-#define INCLUDED_CPPCANVAS_VCLFACTORY_HXX
+#pragma once
#include <cppcanvas/canvas.hxx>
#include <cppcanvas/bitmapcanvas.hxx>
@@ -82,6 +81,4 @@ namespace cppcanvas
}
-#endif // INCLUDED_CPPCANVAS_VCLFACTORY_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */