IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 67b77365 authored by Maximilian Reininghaus's avatar Maximilian Reininghaus :vulcan: Committed by Maximilian Reininghaus
Browse files

remove "static" declaration of get_root_CoordinateSystem()

parent c54154bd
No related branches found
No related tags found
1 merge request!420Some improvements regarding coordinate systems
Pipeline #6196 passed
...@@ -35,7 +35,7 @@ namespace corsika { ...@@ -35,7 +35,7 @@ namespace corsika {
using CoordinateSystemPtr = std::shared_ptr<CoordinateSystem const>; using CoordinateSystemPtr = std::shared_ptr<CoordinateSystem const>;
/// this is the only way to create ONE unique root CS /// this is the only way to create ONE unique root CS
static CoordinateSystemPtr& get_root_CoordinateSystem(); CoordinateSystemPtr const& get_root_CoordinateSystem();
/** /**
* Creates new CoordinateSystemPtr by translation along \a vector * Creates new CoordinateSystemPtr by translation along \a vector
...@@ -134,7 +134,7 @@ namespace corsika { ...@@ -134,7 +134,7 @@ namespace corsika {
* \{ * \{
**/ **/
friend CoordinateSystemPtr& get_root_CoordinateSystem(); friend CoordinateSystemPtr const& get_root_CoordinateSystem();
friend CoordinateSystemPtr make_translation(CoordinateSystemPtr const& cs, friend CoordinateSystemPtr make_translation(CoordinateSystemPtr const& cs,
QuantityVector<length_d> const& vector); QuantityVector<length_d> const& vector);
......
...@@ -27,8 +27,8 @@ namespace corsika { ...@@ -27,8 +27,8 @@ namespace corsika {
* RootCoordinateSystem * RootCoordinateSystem
*/ */
static inline CoordinateSystemPtr& get_root_CoordinateSystem() { inline CoordinateSystemPtr const& get_root_CoordinateSystem() {
static CoordinateSystemPtr rootCS(new CoordinateSystem); // THIS IS IT static CoordinateSystemPtr const rootCS(new CoordinateSystem); // THIS IS IT
return rootCS; return rootCS;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment