tdf#143148 Use pragma once instead of include guards

Refactored include guards into pragma once for some files
alphabetically c-d in sw/inc.

Change-Id: I8cf8059851169472d7953f4e6f5408666d27c2c4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176688
Tested-by: Jenkins
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
This commit is contained in:
Sloane Vaznova
2024-11-17 12:42:19 +01:00
committed by Ilmari Lauhakangas
parent 503d7594e3
commit 78f2f1502b
21 changed files with 21 additions and 85 deletions
+1 -4
View File
@@ -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_COMCORE_HXX
#define INCLUDED_SW_INC_COMCORE_HXX
#pragma once
// defines for the Autoformat Redline Comments
// see sw/inc/utlui.hrc
@@ -50,6 +49,4 @@
// !!!!!!!!!!!!!!!!!!!!!!!!!! always set the correct end !!!!!!!!!!!!
#define STR_AUTOFMTREDL_END 26
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
+1 -4
View File
@@ -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_CRSRSH_HXX
#define INCLUDED_SW_INC_CRSRSH_HXX
#pragma once
#include <com/sun/star/i18n/WordType.hpp>
@@ -969,6 +968,4 @@ inline void SwCursorShell::UnSetVisibleCursor()
m_pVisibleCursor->SetDragCursor( false );
}
#endif // _CRSRSH_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
+1 -4
View File
@@ -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_CRSTATE_HXX
#define INCLUDED_SW_INC_CRSTATE_HXX
#pragma once
#include <com/sun/star/text/HoriOrientation.hpp>
#include <tools/gen.hxx>
@@ -209,6 +208,4 @@ struct SwCursorMoveState
{}
};
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
+1 -4
View File
@@ -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_CSHTYP_HXX
#define INCLUDED_SW_INC_CSHTYP_HXX
#pragma once
#include "swdllapi.h"
#include <o3tl/typed_flags_set.hxx>
@@ -109,6 +108,4 @@ enum class SwDocPositions
OtherEnd
};
#endif // INCLUDED_SW_INC_CSHTYP_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
+1 -4
View File
@@ -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_DBFLD_HXX
#define INCLUDED_SW_INC_DBFLD_HXX
#pragma once
#include "swdllapi.h"
#include "fldbas.hxx"
@@ -286,6 +285,4 @@ inline tools::Long SwDBSetNumberField::GetSetNumber() const
inline void SwDBSetNumberField::SetSetNumber(tools::Long nNum)
{ m_nNumber = nNum; }
#endif // INCLUDED_SW_INC_DBFLD_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
+1 -3
View File
@@ -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_DBGOUTSW_HXX
#define INCLUDED_SW_INC_DBGOUTSW_HXX
#pragma once
#ifdef DBG_UTIL
@@ -106,6 +105,5 @@ const char* dbg_out(const std::unordered_map<tKey, tMember, fHashFunction>& rMap
const char* dbg_out(const SwFormToken& rToken);
const char* dbg_out(const SwFormTokens& rTokens);
#endif // DBG_UTIL
#endif // INCLUDED_SW_INC_DBGOUTSW_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
+1 -4
View File
@@ -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_DBMGR_HXX
#define INCLUDED_SW_INC_DBMGR_HXX
#pragma once
#include <rtl/ustring.hxx>
#include <tools/solar.h>
@@ -492,6 +491,4 @@ enum class DBConnURIType
DBConnURIType SW_DLLPUBLIC GetDBunoType(const INetURLObject &rURL);
}
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
+1 -5
View File
@@ -16,9 +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_DBUI_HRC
#define INCLUDED_SW_INC_DBUI_HRC
#pragma once
#include <utility>
#include <unotools/resmgr.hxx>
@@ -60,6 +58,4 @@ const std::pair<TranslateId, int> SA_ADDRESS_HEADER[] =
{ NC_("SA_ADDRESS_HEADER", "Gender"), MM_PART_GENDER }
};
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
+1 -4
View File
@@ -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_DCONTACT_HXX
#define INCLUDED_SW_INC_DCONTACT_HXX
#pragma once
#include <svx/svdobj.hxx>
#include <svx/svdovirt.hxx>
@@ -410,6 +409,4 @@ class SAL_DLLPUBLIC_RTTI SwDrawContact final : public SwContact
virtual void GetAnchoredObjs( std::vector<SwAnchoredObject*>& _roAnchoredObjs ) const override;
};
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
+1 -5
View File
@@ -16,9 +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_DLELSTNR_HXX
#define INCLUDED_SW_INC_DLELSTNR_HXX
#pragma once
#include <com/sun/star/linguistic2/XLinguServiceEventListener.hpp>
#include <com/sun/star/frame/XTerminateListener.hpp>
@@ -68,6 +66,4 @@ public:
virtual void SAL_CALL notifyTermination( const css::lang::EventObject& rEventObj ) override;
};
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
+1 -4
View File
@@ -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_DOBJFAC_HXX
#define INCLUDED_SW_INC_DOBJFAC_HXX
#pragma once
#include <tools/link.hxx>
#include <svx/svdobj.hxx>
@@ -30,6 +29,4 @@ public:
extern SwObjectFactory aSwObjectFactory;
#endif // INCLUDED_SW_INC_DOBJFAC_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
+1 -4
View File
@@ -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_DOC_HXX
#define INCLUDED_SW_INC_DOC_HXX
#pragma once
// SwDoc interfaces
#include <o3tl/typed_flags_set.hxx>
@@ -1778,6 +1777,4 @@ inline void SwDoc::SetOLEPrtNotifyPending( bool bSet )
bool sw_GetPostIts(const IDocumentFieldsAccess& rIDFA, SetGetExpFields * pSrtLst);
#endif //_DOC_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
+1 -4
View File
@@ -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_DOCARY_HXX
#define INCLUDED_SW_INC_DOCARY_HXX
#pragma once
#include <vector>
#include <type_traits>
@@ -313,6 +312,4 @@ public:
typedef std::vector<SwOLENode*> SwOLENodes;
#endif // INCLUDED_SW_INC_DOCARY_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
+1 -4
View File
@@ -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_DOCFAC_HXX
#define INCLUDED_SW_INC_DOCFAC_HXX
#pragma once
#include <rtl/ref.hxx>
#include "swdllapi.h"
@@ -36,6 +35,4 @@ public:
SwDoc& GetDoc();
};
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
+1 -4
View File
@@ -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_DOCFUNC_HXX
#define INCLUDED_SW_INC_DOCFUNC_HXX
#pragma once
class SwDoc;
@@ -57,6 +56,4 @@ bool AllDrawObjsOnPage(SwDoc& p_rDoc);
bool HasOutlineStyleToBeWrittenAsNormalListStyle(SwDoc& rDoc);
}
#endif //_DOCFUNC_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
+1 -4
View File
@@ -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_DOCSH_HXX
#define INCLUDED_SW_INC_DOCSH_HXX
#pragma once
#include <memory>
#include <vector>
@@ -362,6 +361,4 @@ int SwFindDocShell( SfxObjectShellRef& xDocSh,
sal_Int16 nVersion,
SwDocShell* pDestSh );
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
+1 -4
View File
@@ -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_DOCSTAT_HXX
#define INCLUDED_SW_INC_DOCSTAT_HXX
#pragma once
#include <tools/solar.h>
#include "swdllapi.h"
@@ -43,6 +42,4 @@ struct SW_DLLPUBLIC SwDocStat
void Reset();
};
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
+1 -4
View File
@@ -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_DOCSTYLE_HXX
#define INCLUDED_SW_INC_DOCSTYLE_HXX
#pragma once
#include <rtl/ref.hxx>
#include <rtl/ustring.hxx>
@@ -246,6 +245,4 @@ private:
SwDocStyleSheetPool( const SwDocStyleSheetPool& ) = delete;
};
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
+1 -4
View File
@@ -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_DOCUFLD_HXX
#define INCLUDED_SW_INC_DOCUFLD_HXX
#pragma once
#include <sal/config.h>
@@ -772,6 +771,4 @@ public:
virtual bool PutValue( const css::uno::Any& rVal, sal_uInt16 nWhich ) override;
};
#endif // INCLUDED_SW_INC_DOCUFLD_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
+1 -4
View File
@@ -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_DPAGE_HXX
#define INCLUDED_SW_INC_DPAGE_HXX
#pragma once
#include <memory>
#include <svx/fmpage.hxx>
@@ -60,6 +59,4 @@ private:
void lateInit(const SwDPage& rSrcPage);
};
#endif // INCLUDED_SW_INC_DPAGE_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
+1 -4
View File
@@ -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_DRAWDOC_HXX
#define INCLUDED_SW_INC_DRAWDOC_HXX
#pragma once
#include <svx/fmmodel.hxx>
@@ -46,6 +45,4 @@ private:
virtual css::uno::Reference<css::frame::XModel> createUnoModel() override;
};
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */