summaryrefslogtreecommitdiff
path: root/idlc
diff options
context:
space:
mode:
authorhomeboy445 <akshitsan13@gmail.com>2020-12-09 21:19:59 +0530
committerIlmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>2020-12-13 15:25:39 +0100
commitc17ff0b5dc20d637392562eb59bd5bfdb2694389 (patch)
tree56a2a2a8c4399a683b3f1fd2e15bc7acdddf954b /idlc
parent9617bc9544cd569066ff187c3672a87fe28fe17f (diff)
tdf#124176 Use #pragma once in idlc
Change-Id: Ica679168b782ca24b1e819cdc2ce04affdefb9d9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107528 Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Diffstat (limited to 'idlc')
-rw-r--r--idlc/inc/idlc.hxx5
-rw-r--r--idlc/inc/idlctypes.hxx5
2 files changed, 2 insertions, 8 deletions
diff --git a/idlc/inc/idlc.hxx b/idlc/inc/idlc.hxx
index 454e70511612..8995ead72de4 100644
--- a/idlc/inc/idlc.hxx
+++ b/idlc/inc/idlc.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_IDLC_INC_IDLC_HXX
-#define INCLUDED_IDLC_INC_IDLC_HXX
+#pragma once
#include "idlctypes.hxx"
#include "aststack.hxx"
@@ -162,6 +161,4 @@ AstDeclaration const * deconstructAndResolveTypedefs(
AstInterface const * resolveInterfaceTypedefs(AstType const * type);
-#endif // INCLUDED_IDLC_INC_IDLC_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/idlc/inc/idlctypes.hxx b/idlc/inc/idlctypes.hxx
index c7247be6c86d..a2dadfee178a 100644
--- a/idlc/inc/idlctypes.hxx
+++ b/idlc/inc/idlctypes.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_IDLC_INC_IDLCTYPES_HXX
-#define INCLUDED_IDLC_INC_IDLCTYPES_HXX
+#pragma once
#include <stdio.h>
@@ -187,6 +186,4 @@ enum ParseState
PS_DeclsDeclSeen // Seen complete decl in decls list
};
-#endif // INCLUDED_IDLC_INC_IDLCTYPES_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */