summaryrefslogtreecommitdiff
path: root/sw/inc
diff options
context:
space:
mode:
authorAlchemist <rhithick02@gmail.com>2020-12-31 18:04:12 +0530
committerJulien Nabet <serval2412@yahoo.fr>2021-01-03 10:11:23 +0100
commit74583d24f67f41d15da211cfb00b7eaa8419e685 (patch)
treed46f401d0d85b50b4652ae41baaaa78b84e6a2ab /sw/inc
parent3140d30ba56b95536e9f92ef3074579524791fe5 (diff)
tdf#124176 Use pragma once instead of include guards
Change-Id: I491742c51ddc7c97f02b148dfb81d9ba820a759e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108600 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'sw/inc')
-rw-r--r--sw/inc/accessibilityoptions.hxx4
-rw-r--r--sw/inc/usrfld.hxx5
-rw-r--r--sw/inc/viewsh.hxx5
-rw-r--r--sw/inc/viscrs.hxx4
-rw-r--r--sw/inc/wdocsh.hxx7
5 files changed, 8 insertions, 17 deletions
diff --git a/sw/inc/accessibilityoptions.hxx b/sw/inc/accessibilityoptions.hxx
index 92ec871b5bd3..ce8e94a158be 100644
--- a/sw/inc/accessibilityoptions.hxx
+++ b/sw/inc/accessibilityoptions.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_ACCESSIBILITYOPTIONS_HXX
-#define INCLUDED_SW_INC_ACCESSIBILITYOPTIONS_HXX
+#pragma once
struct SwAccessibilityOptions
{
@@ -34,6 +33,5 @@ struct SwAccessibilityOptions
bool IsStopAnimatedGraphics() const { return bIsStopAnimatedGraphics;}
void SetStopAnimatedGraphics( bool b ) { bIsStopAnimatedGraphics = b; }
};
-#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/inc/usrfld.hxx b/sw/inc/usrfld.hxx
index 3592c6834380..d9ea9e407440 100644
--- a/sw/inc/usrfld.hxx
+++ b/sw/inc/usrfld.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_USRFLD_HXX
-#define INCLUDED_SW_INC_USRFLD_HXX
+#pragma once
#include "swdllapi.h"
#include "fldbas.hxx"
@@ -129,6 +128,4 @@ public:
void dumpAsXml(xmlTextWriterPtr pWriter) const override;
};
-#endif // INCLUDED_SW_INC_USRFLD_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/inc/viewsh.hxx b/sw/inc/viewsh.hxx
index 071c60d11bd3..27d29e9f65f0 100644
--- a/sw/inc/viewsh.hxx
+++ b/sw/inc/viewsh.hxx
@@ -16,8 +16,8 @@
* 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_VIEWSH_HXX
-#define INCLUDED_SW_INC_VIEWSH_HXX
+
+#pragma once
#include "swdllapi.h"
#include "swtypes.hxx"
@@ -614,6 +614,5 @@ inline const SfxItemPool& SwViewShell::GetAttrPool() const
return const_cast<SwViewShell*>(this)->GetAttrPool();
}
-#endif // INCLUDED_SW_INC_VIEWSH_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/inc/viscrs.hxx b/sw/inc/viscrs.hxx
index 95c013b233ca..4818edfc4dfb 100644
--- a/sw/inc/viscrs.hxx
+++ b/sw/inc/viscrs.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_VISCRS_HXX
-#define INCLUDED_SW_INC_VISCRS_HXX
+#pragma once
#include <config_feature_desktop.h>
@@ -207,6 +206,5 @@ public:
const SwShellTableCursor* GetPrev() const { return dynamic_cast<SwShellTableCursor const *>(GetPrevInRing()); }
};
-#endif // INCLUDED_SW_INC_VISCRS_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/inc/wdocsh.hxx b/sw/inc/wdocsh.hxx
index 37424d0fb4a5..addae9eb418f 100644
--- a/sw/inc/wdocsh.hxx
+++ b/sw/inc/wdocsh.hxx
@@ -16,8 +16,9 @@
* 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_WDOCSH_HXX
-#define INCLUDED_SW_INC_WDOCSH_HXX
+
+#pragma once
+
#include "swdllapi.h"
#include "docsh.hxx"
@@ -47,6 +48,4 @@ public:
void SetSourcePara(sal_uInt16 nSet) { m_nSourcePara = nSet; }
};
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */