[hamradio-commits] [gnss-sdr] 96/126: fixing big parameter passed by value instead of by reference by mistake

Carles Fernandez carles_fernandez-guest at moszumanska.debian.org
Sat Dec 26 18:38:06 UTC 2015


This is an automated email from the git hooks/post-receive script.

carles_fernandez-guest pushed a commit to branch next
in repository gnss-sdr.

commit dbad0846b6f7e5880d29fc1cfb55766296a4b0d5
Author: Carles Fernandez <carles.fernandez at gmail.com>
Date:   Tue Dec 8 21:04:06 2015 +0100

    fixing big parameter passed by value instead of by reference by mistake
---
 src/core/system_parameters/rtcm.cc | 6 +++---
 src/core/system_parameters/rtcm.h  | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/core/system_parameters/rtcm.cc b/src/core/system_parameters/rtcm.cc
index 98d0ecd..b57903e 100644
--- a/src/core/system_parameters/rtcm.cc
+++ b/src/core/system_parameters/rtcm.cc
@@ -436,7 +436,7 @@ std::bitset<74> Rtcm::get_MT1002_sat_content(const Gps_Ephemeris & eph, double o
 //
 // **********************************************
 
-std::string Rtcm::print_MT1003(const Gps_Ephemeris & ephL1, const Gps_CNAV_Ephemeris ephL2, double obs_time, const std::map<int, Gnss_Synchro> & pseudoranges)
+std::string Rtcm::print_MT1003(const Gps_Ephemeris & ephL1, const Gps_CNAV_Ephemeris & ephL2, double obs_time, const std::map<int, Gnss_Synchro> & pseudoranges)
 {
     unsigned int ref_id = static_cast<unsigned int>(FLAGS_RTCM_Ref_Station_ID);
     unsigned int smooth_int = 0;
@@ -541,7 +541,7 @@ std::bitset<101> Rtcm::get_MT1003_sat_content(const Gps_Ephemeris & ephL1, const
 //
 // **********************************************
 
-std::string Rtcm::print_MT1004(const Gps_Ephemeris & ephL1, const Gps_CNAV_Ephemeris ephL2, double obs_time, const std::map<int, Gnss_Synchro> & pseudoranges)
+std::string Rtcm::print_MT1004(const Gps_Ephemeris & ephL1, const Gps_CNAV_Ephemeris & ephL2, double obs_time, const std::map<int, Gnss_Synchro> & pseudoranges)
 {
     unsigned int ref_id = static_cast<unsigned int>(FLAGS_RTCM_Ref_Station_ID);
     unsigned int smooth_int = 0;
@@ -1364,7 +1364,7 @@ std::string Rtcm::get_MSM_1_content_sat_data(const std::map<int, Gnss_Synchro> &
             gnss_synchro_iter != pseudoranges.end();
             gnss_synchro_iter++)
         {
-            it = std::find (pos.begin(), pos.end(), 65 - gnss_synchro_iter->second.PRN);
+            it = std::find(pos.begin(), pos.end(), 65 - gnss_synchro_iter->second.PRN);
             if(it == pos.end())
                 {
                     pos.push_back(65 - gnss_synchro_iter->second.PRN);
diff --git a/src/core/system_parameters/rtcm.h b/src/core/system_parameters/rtcm.h
index 764b46f..9c3bfa3 100644
--- a/src/core/system_parameters/rtcm.h
+++ b/src/core/system_parameters/rtcm.h
@@ -68,12 +68,12 @@ public:
     /*!
      * \brief Prints message type 1003 (L1 & L2 GPS RTK Observables)
      */
-    std::string print_MT1003(const Gps_Ephemeris & ephL1, const Gps_CNAV_Ephemeris ephL2, double obs_time, const std::map<int, Gnss_Synchro> & pseudoranges);
+    std::string print_MT1003(const Gps_Ephemeris & ephL1, const Gps_CNAV_Ephemeris & ephL2, double obs_time, const std::map<int, Gnss_Synchro> & pseudoranges);
 
     /*!
      * \brief Prints message type 1004 (Extended L1 & L2 GPS RTK Observables)
      */
-    std::string print_MT1004(const Gps_Ephemeris & ephL1, const Gps_CNAV_Ephemeris ephL2, double obs_time, const std::map<int, Gnss_Synchro> & pseudoranges);
+    std::string print_MT1004(const Gps_Ephemeris & ephL1, const Gps_CNAV_Ephemeris & ephL2, double obs_time, const std::map<int, Gnss_Synchro> & pseudoranges);
 
     /*!
      * \brief Prints message type 1005 (Stationary Antenna Reference Point)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-hamradio/gnss-sdr.git



More information about the pkg-hamradio-commits mailing list