summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHakan Bakacak <hakanbakacak98@gmail.com>2020-01-26 12:04:47 +0300
committerMuhammet Kara <muhammet.kara@collabora.com>2020-01-27 10:10:04 +0100
commitb29a3b6bac8162ccadc8dcf870bd73b9e1e964a2 (patch)
tree263fadb55b5ad26cfe60399f2b1728a705e3b938
parent1b5a4da9100675243b14f2d9b07f23010d94aa82 (diff)
tdf#124176: Use pragma once instead of include guards
Change-Id: I65639e32765ba0804aeb5b5880eca2b5d186485e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87431 Reviewed-by: Muhammet Kara <muhammet.kara@collabora.com> Tested-by: Muhammet Kara <muhammet.kara@collabora.com>
-rw-r--r--hwpfilter/source/hstream.hxx4
-rw-r--r--include/svx/swframeposstrings.hxx5
-rw-r--r--include/svx/sxcaitm.hxx6
-rw-r--r--include/svx/tbxcolor.hxx7
-rw-r--r--include/svx/xmlsecctrl.hxx5
5 files changed, 8 insertions, 19 deletions
diff --git a/hwpfilter/source/hstream.hxx b/hwpfilter/source/hstream.hxx
index e082e3aefd22..bf0d55442d9d 100644
--- a/hwpfilter/source/hstream.hxx
+++ b/hwpfilter/source/hstream.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_HWPFILTER_SOURCE_HSTREAM_H
-#define INCLUDED_HWPFILTER_SOURCE_HSTREAM_H
+#pragma once
#include <vector>
@@ -47,6 +46,5 @@ class HStream
std::vector<byte> seq;
size_t pos;
};
-#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/svx/swframeposstrings.hxx b/include/svx/swframeposstrings.hxx
index c0ef3a3520d0..06cbc4028c6b 100644
--- a/include/svx/swframeposstrings.hxx
+++ b/include/svx/swframeposstrings.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_SVX_SWFRAMEPOSSTRINGS_HXX
-#define INCLUDED_SVX_SWFRAMEPOSSTRINGS_HXX
+
+#pragma once
#include <rtl/ustring.hxx>
#include <svx/svxdllapi.h>
@@ -78,6 +78,5 @@ public:
};
static OUString GetString(StringId eId);
};
-#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/svx/sxcaitm.hxx b/include/svx/sxcaitm.hxx
index 50ed46c0c5ce..fc36d007604a 100644
--- a/include/svx/sxcaitm.hxx
+++ b/include/svx/sxcaitm.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_SVX_SXCAITM_HXX
-#define INCLUDED_SVX_SXCAITM_HXX
+
+#pragma once
#include <svx/svddef.hxx>
@@ -41,6 +41,4 @@ public:
}
};
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/svx/tbxcolor.hxx b/include/svx/tbxcolor.hxx
index 739bef3bbc15..b98b0be7b326 100644
--- a/include/svx/tbxcolor.hxx
+++ b/include/svx/tbxcolor.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_SVX_TBXCOLOR_HXX
-#define INCLUDED_SVX_TBXCOLOR_HXX
+
+#pragma once
#include <com/sun/star/frame/XLayoutManager.hpp>
#include <svx/svxdllapi.h>
@@ -52,7 +52,4 @@ namespace svx
}
-
-#endif // INCLUDED_SVX_TBXCOLOR_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/svx/xmlsecctrl.hxx b/include/svx/xmlsecctrl.hxx
index 56b58dc2b3ef..5ba255a5ee9c 100644
--- a/include/svx/xmlsecctrl.hxx
+++ b/include/svx/xmlsecctrl.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_SVX_XMLSECCTRL_HXX
-#define INCLUDED_SVX_XMLSECCTRL_HXX
+#pragma once
#include <memory>
#include <sfx2/stbitem.hxx>
@@ -44,6 +43,4 @@ public:
virtual void Command( const CommandEvent& rCEvt ) override;
};
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */