summaryrefslogtreecommitdiff
path: root/sccomp
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 /sccomp
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 'sccomp')
-rw-r--r--sccomp/inc/strings.hrc5
-rw-r--r--sccomp/source/solver/DifferentialEvolution.hxx5
-rw-r--r--sccomp/source/solver/ParticelSwarmOptimization.hxx5
-rw-r--r--sccomp/source/solver/SolverComponent.hxx5
4 files changed, 4 insertions, 16 deletions
diff --git a/sccomp/inc/strings.hrc b/sccomp/inc/strings.hrc
index 8a6e65f578a5..1ffff8a0446a 100644
--- a/sccomp/inc/strings.hrc
+++ b/sccomp/inc/strings.hrc
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_SCCOMP_INC_STRINGS_HRC
-#define INCLUDED_SCCOMP_INC_STRINGS_HRC
+#pragma once
#define NC_(Context, String) reinterpret_cast<char const *>(Context "\004" u8##String)
@@ -37,6 +36,4 @@
#define RID_ERROR_UNBOUNDED NC_("RID_ERROR_UNBOUNDED", "The model is unbounded.")
#define RID_ERROR_TIMEOUT NC_("RID_ERROR_TIMEOUT", "The time limit was reached.")
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sccomp/source/solver/DifferentialEvolution.hxx b/sccomp/source/solver/DifferentialEvolution.hxx
index 7d18821350aa..97453437cdb3 100644
--- a/sccomp/source/solver/DifferentialEvolution.hxx
+++ b/sccomp/source/solver/DifferentialEvolution.hxx
@@ -8,8 +8,7 @@
*
*/
-#ifndef INCLUDED_SCCOMP_SOURCE_DIFFERENTIALEVOLUTION_HXX
-#define INCLUDED_SCCOMP_SOURCE_DIFFERENTIALEVOLUTION_HXX
+#pragma once
#include <vector>
#include <random>
@@ -160,6 +159,4 @@ public:
}
};
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sccomp/source/solver/ParticelSwarmOptimization.hxx b/sccomp/source/solver/ParticelSwarmOptimization.hxx
index 42782cfa5b69..ad1103309341 100644
--- a/sccomp/source/solver/ParticelSwarmOptimization.hxx
+++ b/sccomp/source/solver/ParticelSwarmOptimization.hxx
@@ -8,8 +8,7 @@
*
*/
-#ifndef INCLUDED_SCCOMP_SOURCE_PARTICLESWARM_HXX
-#define INCLUDED_SCCOMP_SOURCE_PARTICLESWARM_HXX
+#pragma once
#include <vector>
#include <random>
@@ -175,6 +174,4 @@ public:
}
};
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sccomp/source/solver/SolverComponent.hxx b/sccomp/source/solver/SolverComponent.hxx
index d4ead6889291..1abe8f494a16 100644
--- a/sccomp/source/solver/SolverComponent.hxx
+++ b/sccomp/source/solver/SolverComponent.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_SCCOMP_SOURCE_SOLVER_SOLVERCOMPONENT_HXX
-#define INCLUDED_SCCOMP_SOURCE_SOLVER_SOLVERCOMPONENT_HXX
+#pragma once
#include <com/sun/star/sheet/XSolver.hpp>
#include <com/sun/star/sheet/XSolverDescription.hpp>
@@ -137,6 +136,4 @@ public:
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
};
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */