summaryrefslogtreecommitdiff
path: root/stoc
diff options
context:
space:
mode:
authorMohit Marathe <mohitmarathe23@gmail.com>2024-03-20 19:24:59 +0530
committerIlmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>2024-03-21 16:32:54 +0100
commit370755c72d0b0a5215d2edd45e30782b1e9d0286 (patch)
tree56826d206c8942c802255627fe3a5b6ab1cb2366 /stoc
parent1de1c47471278db2344c986e9d597d6a05e559e9 (diff)
tdf#143148 Use #pragma once instead of include guards
Change-Id: Ia55d226aa308413365659b5537eca7a136ec308a Signed-off-by: Mohit Marathe <mohitmarathe@proton.me> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165064 Tested-by: Jenkins Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Diffstat (limited to 'stoc')
-rw-r--r--stoc/source/corereflection/base.hxx6
-rw-r--r--stoc/source/corereflection/lrucache.hxx7
2 files changed, 3 insertions, 10 deletions
diff --git a/stoc/source/corereflection/base.hxx b/stoc/source/corereflection/base.hxx
index 03d844de3cc9..316b388d20bb 100644
--- a/stoc/source/corereflection/base.hxx
+++ b/stoc/source/corereflection/base.hxx
@@ -18,8 +18,7 @@
*/
// #define TEST_LIST_CLASSES
-#ifndef INCLUDED_STOC_SOURCE_COREREFLECTION_BASE_HXX
-#define INCLUDED_STOC_SOURCE_COREREFLECTION_BASE_HXX
+#pragma once
#include <sal/config.h>
@@ -400,7 +399,4 @@ inline bool coerce_assign(
}
-
-#endif // INCLUDED_STOC_SOURCE_COREREFLECTION_BASE_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/stoc/source/corereflection/lrucache.hxx b/stoc/source/corereflection/lrucache.hxx
index d5eebe804f46..a0413fd353a3 100644
--- a/stoc/source/corereflection/lrucache.hxx
+++ b/stoc/source/corereflection/lrucache.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_STOC_SOURCE_COREREFLECTION_LRUCACHE_HXX
-#define INCLUDED_STOC_SOURCE_COREREFLECTION_LRUCACHE_HXX
+
+#pragma once
// __CACHE_DIAGNOSE forces cache size to 4 and works only for OUString keys
// #define __CACHE_DIAGNOSE 1
@@ -203,7 +203,4 @@ inline void LRU_Cache< t_Key, t_Val, t_KeyHash >::clear()
typedef LRU_Cache< OUString, css::uno::Any, OUStringHash >
LRU_CacheAnyByOUString;
-
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */