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
This commit is contained in:
zdavis 2024-11-15 06:07:30 +00:00 committed by Ilmari Lauhakangas
parent 0d3748e5fb
commit b61ae38fe4
19 changed files with 19 additions and 76 deletions

View file

@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef INCLUDED_CODEMAKER_CODEMAKER_HXX
#define INCLUDED_CODEMAKER_CODEMAKER_HXX
#pragma once
#include <sal/config.h>
@ -33,6 +32,4 @@ namespace codemaker
rtl::OString convertString(rtl::OUString const& string);
}
#endif // INCLUDED_CODEMAKER_CODEMAKER_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View file

@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef INCLUDED_CODEMAKER_COMMONJAVA_HXX
#define INCLUDED_CODEMAKER_COMMONJAVA_HXX
#pragma once
#include <sal/config.h>
@ -39,6 +38,4 @@ rtl::OString translateUnoToJavaIdentifier(
}
#endif // INCLUDED_CODEMAKER_COMMONJAVA_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View file

@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef INCLUDED_CODEMAKER_EXCEPTIONTREE_HXX
#define INCLUDED_CODEMAKER_EXCEPTIONTREE_HXX
#pragma once
#include <rtl/ref.hxx>
#include <rtl/string.hxx>
@ -114,6 +113,4 @@ private:
}
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View file

@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef INCLUDED_CODEMAKER_GENERATEDTYPESET_HXX
#define INCLUDED_CODEMAKER_GENERATEDTYPESET_HXX
#pragma once
#include <rtl/string.hxx>
@ -65,6 +64,4 @@ private:
};
}
#endif // INCLUDED_CODEMAKER_GENERATEDTYPESET_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View file

@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef INCLUDED_CODEMAKER_OPTIONS_HXX
#define INCLUDED_CODEMAKER_OPTIONS_HXX
#pragma once
#include <codemaker/global.hxx>
#include <unordered_map>
@ -67,6 +66,4 @@ protected:
OptionMap m_options;
};
#endif // INCLUDED_CODEMAKER_OPTIONS_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View file

@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef INCLUDED_CODEMAKER_TYPEMANAGER_HXX
#define INCLUDED_CODEMAKER_TYPEMANAGER_HXX
#pragma once
#include <sal/config.h>
@ -77,6 +76,4 @@ inline OUString b2u(std::string_view s) {
return OStringToOUString(s, RTL_TEXTENCODING_UTF8);
}
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View file

@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef INCLUDED_CODEMAKER_UNOTYPE_HXX
#define INCLUDED_CODEMAKER_UNOTYPE_HXX
#pragma once
#include <sal/types.h>
@ -83,6 +82,4 @@ namespace codemaker::UnoType {
}
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View file

@ -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: */

View file

@ -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: */

View file

@ -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: */

View file

@ -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: */

View file

@ -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: */

View file

@ -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: */

View file

@ -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: */

View file

@ -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: */

View file

@ -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: */

View file

@ -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: */

View file

@ -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: */

View file

@ -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: */