diff options
author | Rasenkai <rasenkai99@gmail.com> | 2023-01-28 21:28:52 +0530 |
---|---|---|
committer | Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> | 2023-01-31 10:43:32 +0000 |
commit | a345952daf3238066ecb1a9c67bb6a3640a6299a (patch) | |
tree | 78ff984ca65e9f465ef9c7f338bb785d244c3360 /sw | |
parent | 41a911fa54d3814d81d4ed603babf375c405900f (diff) |
tdf#143148 sw: inc: Use pragma once instead of include guards
Change-Id: I7a491038d1b8532385e70294872d209dcdc63ce9
Signed-off-by: Rasenkai <rasenkai99@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146300
Tested-by: Jenkins
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/inc/EnhancedPDFExportHelper.hxx | 5 | ||||
-rw-r--r-- | sw/inc/HandleAnchorNodeChg.hxx | 4 | ||||
-rw-r--r-- | sw/inc/IDocumentChartDataProviderAccess.hxx | 5 | ||||
-rw-r--r-- | sw/inc/IDocumentContentOperations.hxx | 5 | ||||
-rw-r--r-- | sw/inc/IDocumentDeviceAccess.hxx | 5 | ||||
-rw-r--r-- | sw/inc/IDocumentDrawModelAccess.hxx | 5 | ||||
-rw-r--r-- | sw/inc/IDocumentExternalData.hxx | 5 | ||||
-rw-r--r-- | sw/inc/IDocumentFieldsAccess.hxx | 5 | ||||
-rw-r--r-- | sw/inc/IDocumentLayoutAccess.hxx | 5 | ||||
-rw-r--r-- | sw/inc/IDocumentLinksAdministration.hxx | 5 | ||||
-rw-r--r-- | sw/inc/IDocumentListItems.hxx | 5 | ||||
-rw-r--r-- | sw/inc/IDocumentListsAccess.hxx | 5 | ||||
-rw-r--r-- | sw/inc/IDocumentMarkAccess.hxx | 5 | ||||
-rw-r--r-- | sw/inc/IDocumentOutlineNodes.hxx | 5 | ||||
-rw-r--r-- | sw/inc/IDocumentRedlineAccess.hxx | 5 | ||||
-rw-r--r-- | sw/inc/IDocumentSettingAccess.hxx | 5 | ||||
-rw-r--r-- | sw/inc/IDocumentState.hxx | 5 | ||||
-rw-r--r-- | sw/inc/IDocumentStatistics.hxx | 5 | ||||
-rw-r--r-- | sw/inc/IDocumentStylePoolAccess.hxx | 5 | ||||
-rw-r--r-- | sw/inc/IDocumentTimerAccess.hxx | 5 | ||||
-rw-r--r-- | sw/inc/IDocumentUndoRedo.hxx | 5 |
21 files changed, 21 insertions, 83 deletions
diff --git a/sw/inc/EnhancedPDFExportHelper.hxx b/sw/inc/EnhancedPDFExportHelper.hxx index 8b72001f0fb7..2843e7a78a67 100644 --- a/sw/inc/EnhancedPDFExportHelper.hxx +++ b/sw/inc/EnhancedPDFExportHelper.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SW_INC_ENHANCEDPDFEXPORTHELPER_HXX -#define INCLUDED_SW_INC_ENHANCEDPDFEXPORTHELPER_HXX +#pragma once #include <i18nlangtag/lang.h> #include <vcl/pdfwriter.hxx> @@ -255,6 +254,4 @@ class SwEnhancedPDFExportHelper const tools::Rectangle& rRectangle) const; }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/inc/HandleAnchorNodeChg.hxx b/sw/inc/HandleAnchorNodeChg.hxx index 540e87a685bd..c61959b5d27a 100644 --- a/sw/inc/HandleAnchorNodeChg.hxx +++ b/sw/inc/HandleAnchorNodeChg.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_SW_INC_HANDLEANCHORNODECHG_HXX -#define INCLUDED_SW_INC_HANDLEANCHORNODECHG_HXX +#pragma once #include "pam.hxx" #include <wrtsh.hxx> @@ -72,6 +71,5 @@ private: SwHandleAnchorNodeChg(const SwHandleAnchorNodeChg&) = delete; void operator=(const SwHandleAnchorNodeChg) = delete; }; -#endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/inc/IDocumentChartDataProviderAccess.hxx b/sw/inc/IDocumentChartDataProviderAccess.hxx index dabcc44f1608..689538a7678f 100644 --- a/sw/inc/IDocumentChartDataProviderAccess.hxx +++ b/sw/inc/IDocumentChartDataProviderAccess.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SW_INC_IDOCUMENTCHARTDATAPROVIDERACCESS_HXX -#define INCLUDED_SW_INC_IDOCUMENTCHARTDATAPROVIDERACCESS_HXX +#pragma once class SwTable; class SwChartDataProvider; @@ -49,6 +48,4 @@ protected: virtual ~IDocumentChartDataProviderAccess(){}; }; -#endif // INCLUDED_SW_INC_IDOCUMENTCHARTDATAPROVIDERACCESS_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/inc/IDocumentContentOperations.hxx b/sw/inc/IDocumentContentOperations.hxx index 3294e9869b4c..43e2c8492d51 100644 --- a/sw/inc/IDocumentContentOperations.hxx +++ b/sw/inc/IDocumentContentOperations.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SW_INC_IDOCUMENTCONTENTOPERATIONS_HXX -#define INCLUDED_SW_INC_IDOCUMENTCONTENTOPERATIONS_HXX +#pragma once #include <sal/types.h> #include <rtl/ustring.hxx> @@ -251,6 +250,4 @@ protected: virtual ~IDocumentContentOperations() {}; }; -#endif // INCLUDED_SW_INC_IDOCUMENTCONTENTOPERATIONS_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/inc/IDocumentDeviceAccess.hxx b/sw/inc/IDocumentDeviceAccess.hxx index bbddd4e69a8a..e9c6e88cc900 100644 --- a/sw/inc/IDocumentDeviceAccess.hxx +++ b/sw/inc/IDocumentDeviceAccess.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SW_INC_IDOCUMENTDEVICEACCESS_HXX -#define INCLUDED_SW_INC_IDOCUMENTDEVICEACCESS_HXX +#pragma once class SfxPrinter; class JobSetup; @@ -129,6 +128,4 @@ protected: virtual ~IDocumentDeviceAccess(){}; }; -#endif // INCLUDED_SW_INC_IDOCUMENTDEVICEACCESS_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/inc/IDocumentDrawModelAccess.hxx b/sw/inc/IDocumentDrawModelAccess.hxx index 06e0161e1921..3c1113cfe882 100644 --- a/sw/inc/IDocumentDrawModelAccess.hxx +++ b/sw/inc/IDocumentDrawModelAccess.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SW_INC_IDOCUMENTDRAWMODELACCESS_HXX -#define INCLUDED_SW_INC_IDOCUMENTDRAWMODELACCESS_HXX +#pragma once #include <svx/svdtypes.hxx> @@ -77,6 +76,4 @@ protected: virtual ~IDocumentDrawModelAccess(){}; }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/inc/IDocumentExternalData.hxx b/sw/inc/IDocumentExternalData.hxx index 50ab4f2d2189..9efbea39a89f 100644 --- a/sw/inc/IDocumentExternalData.hxx +++ b/sw/inc/IDocumentExternalData.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_SW_INC_IDOCUMENTEXTERNALDATA_HXX -#define INCLUDED_SW_INC_IDOCUMENTEXTERNALDATA_HXX +#pragma once #include <memory> #include <unordered_map> @@ -57,6 +56,4 @@ public: virtual sw::tExternalDataPointer getExternalData(sw::tExternalDataType eType) = 0; }; -#endif // INCLUDED_SW_INC_IDOCUMENTEXTERNALDATA_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/inc/IDocumentFieldsAccess.hxx b/sw/inc/IDocumentFieldsAccess.hxx index 33a71b4115c2..237af065ae7c 100644 --- a/sw/inc/IDocumentFieldsAccess.hxx +++ b/sw/inc/IDocumentFieldsAccess.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SW_INC_IDOCUMENTFIELDSACCESS_HXX -#define INCLUDED_SW_INC_IDOCUMENTFIELDSACCESS_HXX +#pragma once #include <sal/config.h> @@ -146,6 +145,4 @@ bool IsFieldDeletedInModel(IDocumentRedlineAccess const& rIDRA, SwTextField const& rTextField); } -#endif // INCLUDED_SW_INC_IDOCUMENTFIELDSACCESS_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/inc/IDocumentLayoutAccess.hxx b/sw/inc/IDocumentLayoutAccess.hxx index 67c1b908abd2..d13d8d6a7c71 100644 --- a/sw/inc/IDocumentLayoutAccess.hxx +++ b/sw/inc/IDocumentLayoutAccess.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SW_INC_IDOCUMENTLAYOUTACCESS_HXX -#define INCLUDED_SW_INC_IDOCUMENTLAYOUTACCESS_HXX +#pragma once class SwViewShell; class SwRootFrame; @@ -62,6 +61,4 @@ protected: virtual ~IDocumentLayoutAccess() {}; }; - #endif // INCLUDED_SW_INC_IDOCUMENTLAYOUTACCESS_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/inc/IDocumentLinksAdministration.hxx b/sw/inc/IDocumentLinksAdministration.hxx index 26133d9c57da..6a18fc98ad24 100644 --- a/sw/inc/IDocumentLinksAdministration.hxx +++ b/sw/inc/IDocumentLinksAdministration.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SW_INC_IDOCUMENTLINKSADMINISTRATION_HXX -#define INCLUDED_SW_INC_IDOCUMENTLINKSADMINISTRATION_HXX +#pragma once #include <sal/config.h> @@ -69,6 +68,4 @@ protected: virtual ~IDocumentLinksAdministration() {}; }; - #endif // INCLUDED_SW_INC_IDOCUMENTLINKSADMINISTRATION_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/inc/IDocumentListItems.hxx b/sw/inc/IDocumentListItems.hxx index b5d1e8083b48..12e158d9d904 100644 --- a/sw/inc/IDocumentListItems.hxx +++ b/sw/inc/IDocumentListItems.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SW_INC_IDOCUMENTLISTITEMS_HXX -#define INCLUDED_SW_INC_IDOCUMENTLISTITEMS_HXX +#pragma once #include <vector> #include <rtl/ustring.hxx> @@ -50,6 +49,4 @@ protected: virtual ~IDocumentListItems() {}; }; - #endif // INCLUDED_SW_INC_IDOCUMENTLISTITEMS_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/inc/IDocumentListsAccess.hxx b/sw/inc/IDocumentListsAccess.hxx index ada66af3b574..8d78dbed86b5 100644 --- a/sw/inc/IDocumentListsAccess.hxx +++ b/sw/inc/IDocumentListsAccess.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SW_INC_IDOCUMENTLISTSACCESS_HXX -#define INCLUDED_SW_INC_IDOCUMENTLISTSACCESS_HXX +#pragma once #include <rtl/ustring.hxx> @@ -44,6 +43,4 @@ class IDocumentListsAccess virtual ~IDocumentListsAccess() {}; }; -#endif // INCLUDED_SW_INC_IDOCUMENTLISTSACCESS_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/inc/IDocumentMarkAccess.hxx b/sw/inc/IDocumentMarkAccess.hxx index ee5efbf95692..e86a4efc8f1a 100644 --- a/sw/inc/IDocumentMarkAccess.hxx +++ b/sw/inc/IDocumentMarkAccess.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SW_INC_IDOCUMENTMARKACCESS_HXX -#define INCLUDED_SW_INC_IDOCUMENTMARKACCESS_HXX +#pragma once #include <sal/types.h> #include "IMark.hxx" @@ -376,6 +375,4 @@ class IDocumentMarkAccess virtual ~IDocumentMarkAccess() {}; }; -#endif // IDOCUMENTBOOKMARKACCESS_HXX_INCLUDED - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/inc/IDocumentOutlineNodes.hxx b/sw/inc/IDocumentOutlineNodes.hxx index f76276835c46..bf193993e000 100644 --- a/sw/inc/IDocumentOutlineNodes.hxx +++ b/sw/inc/IDocumentOutlineNodes.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SW_INC_IDOCUMENTOUTLINENODES_HXX -#define INCLUDED_SW_INC_IDOCUMENTOUTLINENODES_HXX +#pragma once #include <rtl/ustring.hxx> #include <vector> @@ -52,6 +51,4 @@ protected: virtual ~IDocumentOutlineNodes() {}; }; - #endif // INCLUDED_SW_INC_IDOCUMENTOUTLINENODES_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/inc/IDocumentRedlineAccess.hxx b/sw/inc/IDocumentRedlineAccess.hxx index 24073b25930c..73f87fa8c799 100644 --- a/sw/inc/IDocumentRedlineAccess.hxx +++ b/sw/inc/IDocumentRedlineAccess.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SW_INC_IDOCUMENTREDLINEACCESS_HXX -#define INCLUDED_SW_INC_IDOCUMENTREDLINEACCESS_HXX +#pragma once #include <sal/config.h> @@ -223,6 +222,4 @@ protected: virtual ~IDocumentRedlineAccess() {}; }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/inc/IDocumentSettingAccess.hxx b/sw/inc/IDocumentSettingAccess.hxx index e891a2b8c058..b392b43e378d 100644 --- a/sw/inc/IDocumentSettingAccess.hxx +++ b/sw/inc/IDocumentSettingAccess.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SW_INC_IDOCUMENTSETTINGACCESS_HXX -#define INCLUDED_SW_INC_IDOCUMENTSETTINGACCESS_HXX +#pragma once #include <sal/types.h> #include "fldupde.hxx" @@ -273,6 +272,4 @@ protected: virtual ~IDocumentSettingAccess(){}; }; -#endif // INCLUDED_SW_INC_IDOCUMENTSETTINGACCESS_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/inc/IDocumentState.hxx b/sw/inc/IDocumentState.hxx index 4f9ef9532d22..6653c4a04b07 100644 --- a/sw/inc/IDocumentState.hxx +++ b/sw/inc/IDocumentState.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SW_INC_IDOCUMENTSTATE_HXX -#define INCLUDED_SW_INC_IDOCUMENTSTATE_HXX +#pragma once /** Get information about the current document state */ @@ -52,6 +51,4 @@ protected: virtual ~IDocumentState(){}; }; -#endif // INCLUDED_SW_INC_IDOCUMENTSTATE_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/inc/IDocumentStatistics.hxx b/sw/inc/IDocumentStatistics.hxx index ed905c2b6937..bebfb5cbbd38 100644 --- a/sw/inc/IDocumentStatistics.hxx +++ b/sw/inc/IDocumentStatistics.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SW_INC_IDOCUMENTSTATISTICS_HXX -#define INCLUDED_SW_INC_IDOCUMENTSTATISTICS_HXX +#pragma once struct SwDocStat; @@ -61,6 +60,4 @@ protected: virtual ~IDocumentStatistics(){}; }; -#endif // INCLUDED_SW_INC_IDOCUMENTSTATISTICS_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/inc/IDocumentStylePoolAccess.hxx b/sw/inc/IDocumentStylePoolAccess.hxx index 26713ab470b9..32a16634a624 100644 --- a/sw/inc/IDocumentStylePoolAccess.hxx +++ b/sw/inc/IDocumentStylePoolAccess.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SW_INC_IDOCUMENTSTYLEPOOLACCESS_HXX -#define INCLUDED_SW_INC_IDOCUMENTSTYLEPOOLACCESS_HXX +#pragma once #include <sal/types.h> @@ -67,6 +66,4 @@ protected: virtual ~IDocumentStylePoolAccess(){}; }; -#endif // INCLUDED_SW_INC_IDOCUMENTSTYLEPOOLACCESS_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/inc/IDocumentTimerAccess.hxx b/sw/inc/IDocumentTimerAccess.hxx index c67115f251b8..dbc4963b1d16 100644 --- a/sw/inc/IDocumentTimerAccess.hxx +++ b/sw/inc/IDocumentTimerAccess.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SW_INC_IDOCUMENTTIMERACCESS_HXX -#define INCLUDED_SW_INC_IDOCUMENTTIMERACCESS_HXX +#pragma once /** * Handle the background jobs of a Writer document. @@ -69,6 +68,4 @@ protected: virtual ~IDocumentTimerAccess(){}; }; -#endif // INCLUDED_SW_INC_IDOCUMENTTIMERACCESS_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/inc/IDocumentUndoRedo.hxx b/sw/inc/IDocumentUndoRedo.hxx index e946b5ec4efe..a35145edc1e5 100644 --- a/sw/inc/IDocumentUndoRedo.hxx +++ b/sw/inc/IDocumentUndoRedo.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SW_INC_IDOCUMENTUNDOREDO_HXX -#define INCLUDED_SW_INC_IDOCUMENTUNDOREDO_HXX +#pragma once #include <sal/types.h> @@ -289,6 +288,4 @@ private: } // namespace sw -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |