From 88866a20e2f8184a9ea9b117035cdb44bc9bcea1 Mon Sep 17 00:00:00 2001
From: Giovanni La Mura <giovanni.lamura@inaf.it>
Date: Wed, 24 Apr 2024 17:14:07 +0200
Subject: [PATCH] Pass string arguments by reference

---
 src/cluster/np_cluster.cpp | 2 +-
 src/sphere/np_sphere.cpp   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/cluster/np_cluster.cpp b/src/cluster/np_cluster.cpp
index 66fb783b..de9c30fe 100644
--- a/src/cluster/np_cluster.cpp
+++ b/src/cluster/np_cluster.cpp
@@ -31,7 +31,7 @@
 
 using namespace std;
 
-extern void cluster(string config_file, string data_file, string output_path);
+extern void cluster(const string& config_file, const string& data_file, const string& output_path);
 
 /*! \brief Main program entry point.
  *
diff --git a/src/sphere/np_sphere.cpp b/src/sphere/np_sphere.cpp
index 7f381e41..afb3fdbd 100644
--- a/src/sphere/np_sphere.cpp
+++ b/src/sphere/np_sphere.cpp
@@ -30,7 +30,7 @@
 
 using namespace std;
 
-extern void sphere(string config_file, string data_file, string output_path);
+extern void sphere(const string& config_file, const string& data_file, const string& output_path);
 
 /*! \brief Main program entry point.
  *
-- 
GitLab