summaryrefslogtreecommitdiff
path: root/scripting
diff options
context:
space:
mode:
authorVincent LE GARREC <libreoffice@le-garrec.fr>2021-03-06 09:49:30 +0100
committerIlmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>2021-03-23 13:39:56 +0100
commit24552a0b5be620b5e58b10842cba78e36fa26b04 (patch)
treedf793dbd1f18169a93be145ae5ded9cca2f6cc67 /scripting
parent59b0dd6e94c876dd322503f326fedf5fa350d25e (diff)
tdf#124176 Use pragma once in s*
sc, scaddins, sccomp, scripting Change-Id: Ia99fec9e238033821cb784810edd4762c09bd5db Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112049 Tested-by: Jenkins Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Diffstat (limited to 'scripting')
-rw-r--r--scripting/source/basprov/baslibnode.hxx5
-rw-r--r--scripting/source/basprov/basmethnode.hxx5
-rw-r--r--scripting/source/basprov/basmodnode.hxx5
-rw-r--r--scripting/source/basprov/basprov.hxx5
-rw-r--r--scripting/source/basprov/basscript.hxx5
-rw-r--r--scripting/source/inc/bcholder.hxx5
-rw-r--r--scripting/source/inc/util/MiscUtils.hxx4
-rw-r--r--scripting/source/protocolhandler/scripthandler.hxx4
-rw-r--r--scripting/source/provider/ActiveMSPList.hxx4
-rw-r--r--scripting/source/provider/BrowseNodeFactoryImpl.hxx5
-rw-r--r--scripting/source/provider/MasterScriptProvider.hxx5
-rw-r--r--scripting/source/provider/MasterScriptProviderFactory.hxx5
-rw-r--r--scripting/source/provider/ProviderCache.hxx4
-rw-r--r--scripting/source/provider/URIHelper.hxx4
14 files changed, 14 insertions, 51 deletions
diff --git a/scripting/source/basprov/baslibnode.hxx b/scripting/source/basprov/baslibnode.hxx
index 1e21c496fe4a..46d31aae58e5 100644
--- a/scripting/source/basprov/baslibnode.hxx
+++ b/scripting/source/basprov/baslibnode.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_SCRIPTING_SOURCE_BASPROV_BASLIBNODE_HXX
-#define INCLUDED_SCRIPTING_SOURCE_BASPROV_BASLIBNODE_HXX
+#pragma once
#include <com/sun/star/script/XLibraryContainer.hpp>
#include <com/sun/star/script/browse/XBrowseNode.hpp>
@@ -68,6 +67,4 @@ namespace basprov
} // namespace basprov
-#endif // INCLUDED_SCRIPTING_SOURCE_BASPROV_BASLIBNODE_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/scripting/source/basprov/basmethnode.hxx b/scripting/source/basprov/basmethnode.hxx
index 8910a8c6f728..53f9a8fbc357 100644
--- a/scripting/source/basprov/basmethnode.hxx
+++ b/scripting/source/basprov/basmethnode.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_SCRIPTING_SOURCE_BASPROV_BASMETHNODE_HXX
-#define INCLUDED_SCRIPTING_SOURCE_BASPROV_BASMETHNODE_HXX
+#pragma once
#include <bcholder.hxx>
#include <com/sun/star/beans/XPropertySetInfo.hpp>
@@ -105,6 +104,4 @@ namespace basprov
} // namespace basprov
-#endif // INCLUDED_SCRIPTING_SOURCE_BASPROV_BASMETHNODE_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/scripting/source/basprov/basmodnode.hxx b/scripting/source/basprov/basmodnode.hxx
index d537a92a3026..ebf0957ef044 100644
--- a/scripting/source/basprov/basmodnode.hxx
+++ b/scripting/source/basprov/basmodnode.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_SCRIPTING_SOURCE_BASPROV_BASMODNODE_HXX
-#define INCLUDED_SCRIPTING_SOURCE_BASPROV_BASMODNODE_HXX
+#pragma once
#include <com/sun/star/script/browse/XBrowseNode.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
@@ -62,6 +61,4 @@ namespace basprov
} // namespace basprov
-#endif // INCLUDED_SCRIPTING_SOURCE_BASPROV_BASMODNODE_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/scripting/source/basprov/basprov.hxx b/scripting/source/basprov/basprov.hxx
index 6b57c3f4a2a7..994113b62868 100644
--- a/scripting/source/basprov/basprov.hxx
+++ b/scripting/source/basprov/basprov.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_SCRIPTING_SOURCE_BASPROV_BASPROV_HXX
-#define INCLUDED_SCRIPTING_SOURCE_BASPROV_BASPROV_HXX
+#pragma once
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/lang/XInitialization.hpp>
@@ -95,6 +94,4 @@ namespace basprov
} // namespace basprov
-#endif // INCLUDED_SCRIPTING_SOURCE_BASPROV_BASPROV_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/scripting/source/basprov/basscript.hxx b/scripting/source/basprov/basscript.hxx
index ed86b9dcb378..f92691affe75 100644
--- a/scripting/source/basprov/basscript.hxx
+++ b/scripting/source/basprov/basscript.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_SCRIPTING_SOURCE_BASPROV_BASSCRIPT_HXX
-#define INCLUDED_SCRIPTING_SOURCE_BASPROV_BASSCRIPT_HXX
+#pragma once
#include <bcholder.hxx>
#include <com/sun/star/script/provider/XScript.hpp>
@@ -100,6 +99,4 @@ namespace basprov
} // namespace basprov
-#endif // INCLUDED_SCRIPTING_SOURCE_BASPROV_BASSCRIPT_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/scripting/source/inc/bcholder.hxx b/scripting/source/inc/bcholder.hxx
index 822f65e705d8..d9c994013bcb 100644
--- a/scripting/source/inc/bcholder.hxx
+++ b/scripting/source/inc/bcholder.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_SCRIPTING_SOURCE_INC_BCHOLDER_HXX
-#define INCLUDED_SCRIPTING_SOURCE_INC_BCHOLDER_HXX
+#pragma once
#include <osl/mutex.hxx>
#include <cppuhelper/interfacecontainer.h>
@@ -54,6 +53,4 @@ namespace scripting_helper
} // namespace scripting_helper
-#endif // INCLUDED_SCRIPTING_SOURCE_INC_BCHOLDER_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/scripting/source/inc/util/MiscUtils.hxx b/scripting/source/inc/util/MiscUtils.hxx
index 40d6479ace63..2ba4492abae3 100644
--- a/scripting/source/inc/util/MiscUtils.hxx
+++ b/scripting/source/inc/util/MiscUtils.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_SCRIPTING_SOURCE_INC_UTIL_MISCUTILS_HXX
-#define INCLUDED_SCRIPTING_SOURCE_INC_UTIL_MISCUTILS_HXX
+#pragma once
#include <rtl/ustring.hxx>
#include <osl/diagnose.h>
@@ -135,6 +134,5 @@ static css::uno::Any getUCBProperty( ::ucbhelper::Content& content, OUString con
};
} // namespace sf_misc
-#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/scripting/source/protocolhandler/scripthandler.hxx b/scripting/source/protocolhandler/scripthandler.hxx
index c7c3811efae4..74667b5a4ed9 100644
--- a/scripting/source/protocolhandler/scripthandler.hxx
+++ b/scripting/source/protocolhandler/scripthandler.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_SCRIPTING_SOURCE_PROTOCOLHANDLER_SCRIPTHANDLER_HXX
-#define INCLUDED_SCRIPTING_SOURCE_PROTOCOLHANDLER_SCRIPTHANDLER_HXX
+#pragma once
#include <com/sun/star/frame/XDispatchProvider.hpp>
#include <com/sun/star/frame/XNotifyingDispatch.hpp>
@@ -111,6 +110,5 @@ public:
};
}
-#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/scripting/source/provider/ActiveMSPList.hxx b/scripting/source/provider/ActiveMSPList.hxx
index a17286439e2f..3685e666cdef 100644
--- a/scripting/source/provider/ActiveMSPList.hxx
+++ b/scripting/source/provider/ActiveMSPList.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_SCRIPTING_SOURCE_PROVIDER_ACTIVEMSPLIST_HXX
-#define INCLUDED_SCRIPTING_SOURCE_PROVIDER_ACTIVEMSPLIST_HXX
+#pragma once
#include <osl/mutex.hxx>
#include <rtl/ustring.hxx>
@@ -91,6 +90,5 @@ private:
css::uno::Reference< css::uno::XComponentContext > m_xContext;
};
} // func_provider
-#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/scripting/source/provider/BrowseNodeFactoryImpl.hxx b/scripting/source/provider/BrowseNodeFactoryImpl.hxx
index 6f79e4fb8466..908568021039 100644
--- a/scripting/source/provider/BrowseNodeFactoryImpl.hxx
+++ b/scripting/source/provider/BrowseNodeFactoryImpl.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_SCRIPTING_SOURCE_PROVIDER_BROWSENODEFACTORYIMPL_HXX
-#define INCLUDED_SCRIPTING_SOURCE_PROVIDER_BROWSENODEFACTORYIMPL_HXX
+#pragma once
#include <rtl/ustring.hxx>
#include <cppuhelper/implbase.hxx>
@@ -68,6 +67,4 @@ private:
} // namespace browsenodefactory
-#endif // INCLUDED_SCRIPTING_SOURCE_PROVIDER_BROWSENODEFACTORYIMPL_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/scripting/source/provider/MasterScriptProvider.hxx b/scripting/source/provider/MasterScriptProvider.hxx
index c35bdc90e13c..2328746f950a 100644
--- a/scripting/source/provider/MasterScriptProvider.hxx
+++ b/scripting/source/provider/MasterScriptProvider.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_SCRIPTING_SOURCE_PROVIDER_MASTERSCRIPTPROVIDER_HXX
-#define INCLUDED_SCRIPTING_SOURCE_PROVIDER_MASTERSCRIPTPROVIDER_HXX
+#pragma once
#include <rtl/ustring.hxx>
@@ -128,6 +127,4 @@ private:
}
-#endif // INCLUDED_SCRIPTING_SOURCE_PROVIDER_MASTERSCRIPTPROVIDER_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/scripting/source/provider/MasterScriptProviderFactory.hxx b/scripting/source/provider/MasterScriptProviderFactory.hxx
index aea06278aacd..9fbc8705db77 100644
--- a/scripting/source/provider/MasterScriptProviderFactory.hxx
+++ b/scripting/source/provider/MasterScriptProviderFactory.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_SCRIPTING_SOURCE_PROVIDER_MASTERSCRIPTPROVIDERFACTORY_HXX
-#define INCLUDED_SCRIPTING_SOURCE_PROVIDER_MASTERSCRIPTPROVIDERFACTORY_HXX
+#pragma once
#include <rtl/ustring.hxx>
#include <rtl/ref.hxx>
@@ -72,6 +71,4 @@ public:
} // namespace func_provider
-#endif // INCLUDED_SCRIPTING_SOURCE_PROVIDER_MASTERSCRIPTPROVIDERFACTORY_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/scripting/source/provider/ProviderCache.hxx b/scripting/source/provider/ProviderCache.hxx
index b2a35a58d172..5e00217875a2 100644
--- a/scripting/source/provider/ProviderCache.hxx
+++ b/scripting/source/provider/ProviderCache.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_SCRIPTING_SOURCE_PROVIDER_PROVIDERCACHE_HXX
-#define INCLUDED_SCRIPTING_SOURCE_PROVIDER_PROVIDERCACHE_HXX
+#pragma once
#include <osl/mutex.hxx>
#include <rtl/ustring.hxx>
@@ -77,6 +76,5 @@ private:
};
} // func_provider
-#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/scripting/source/provider/URIHelper.hxx b/scripting/source/provider/URIHelper.hxx
index 7cf91e686b8d..e7a05fd73d99 100644
--- a/scripting/source/provider/URIHelper.hxx
+++ b/scripting/source/provider/URIHelper.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_SCRIPTING_SOURCE_PROVIDER_URIHELPER_HXX
-#define INCLUDED_SCRIPTING_SOURCE_PROVIDER_URIHELPER_HXX
+#pragma once
#include <com/sun/star/script/provider/XScriptURIHelper.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
@@ -84,6 +83,5 @@ public:
};
} // namespace func_provider
-#endif // INCLUDED_SCRIPTING_SOURCE_PROVIDER_URIHELPER_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */