summaryrefslogtreecommitdiff
path: root/scaddins/source/pricing
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 /scaddins/source/pricing
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 'scaddins/source/pricing')
-rw-r--r--scaddins/source/pricing/black_scholes.hxx5
-rw-r--r--scaddins/source/pricing/pricing.hxx5
2 files changed, 2 insertions, 8 deletions
diff --git a/scaddins/source/pricing/black_scholes.hxx b/scaddins/source/pricing/black_scholes.hxx
index cdcb20b84182..9e82857e0364 100644
--- a/scaddins/source/pricing/black_scholes.hxx
+++ b/scaddins/source/pricing/black_scholes.hxx
@@ -11,8 +11,7 @@
*/
-#ifndef INCLUDED_SCADDINS_SOURCE_PRICING_BLACK_SCHOLES_HXX
-#define INCLUDED_SCADDINS_SOURCE_PRICING_BLACK_SCHOLES_HXX
+#pragma once
// options prices and greeks in the Black-Scholes model
// also known as TV (theoretical value)
@@ -144,6 +143,4 @@ double prob_in_money(double S, double vol, double mu,
} // namespace sca
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/scaddins/source/pricing/pricing.hxx b/scaddins/source/pricing/pricing.hxx
index ffc13499831d..0f613ddbe3ee 100644
--- a/scaddins/source/pricing/pricing.hxx
+++ b/scaddins/source/pricing/pricing.hxx
@@ -24,8 +24,7 @@
// to avoid having to rename all classes to do with UNO
// technicalities we use our own namespace
-#ifndef INCLUDED_SCADDINS_SOURCE_PRICING_PRICING_HXX
-#define INCLUDED_SCADDINS_SOURCE_PRICING_PRICING_HXX
+#pragma once
#include <vector>
@@ -195,6 +194,4 @@ public:
};
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */