1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-11-10 20:10:05 +00:00

Fixed clang format

This commit is contained in:
Xavier Guerrero-Pau 2024-09-09 15:43:24 +02:00 committed by Carles Fernandez
parent fdc4e4078e
commit c9277539ff
5 changed files with 24 additions and 24 deletions

View File

@ -30,11 +30,11 @@ Monitor_Pvt_Udp_Sink::Monitor_Pvt_Udp_Sink(
{
for (const auto& address : addresses)
{
for (const auto& port : ports)
{
boost::asio::ip::udp::endpoint endpoint(boost::asio::ip::address::from_string(address, error), boost::lexical_cast<int> (port));
endpoints.push_back(endpoint);
}
for (const auto& port : ports)
{
boost::asio::ip::udp::endpoint endpoint(boost::asio::ip::address::from_string(address, error), boost::lexical_cast<int>(port));
endpoints.push_back(endpoint);
}
}
if (use_protobuf)

View File

@ -43,11 +43,11 @@ gnss_synchro_monitor::gnss_synchro_monitor(int n_channels,
const std::vector<std::string>& udp_addresses,
bool enable_protobuf)
: gr::block("gnss_synchro_monitor",
gr::io_signature::make(n_channels, n_channels, sizeof(Gnss_Synchro)),
gr::io_signature::make(0, 0, 0)),
count(0),
d_nchannels(n_channels),
d_decimation_factor(decimation_factor)
gr::io_signature::make(n_channels, n_channels, sizeof(Gnss_Synchro)),
gr::io_signature::make(0, 0, 0)),
count(0),
d_nchannels(n_channels),
d_decimation_factor(decimation_factor)
{
udp_sink_ptr = std::make_unique<Gnss_Synchro_Udp_Sink>(udp_addresses, udp_ports, enable_protobuf);
}

View File

@ -17,8 +17,8 @@
#include "gnss_synchro_udp_sink.h"
#include <boost/archive/binary_oarchive.hpp>
#include <boost/serialization/vector.hpp>
#include <boost/lexical_cast.hpp>
#include <boost/serialization/vector.hpp>
#include <iostream>
#include <sstream>
@ -35,13 +35,13 @@ Gnss_Synchro_Udp_Sink::Gnss_Synchro_Udp_Sink(
}
for (const auto& address : addresses)
{
for (const auto& port : ports)
{
boost::asio::ip::udp::endpoint endpoint(
boost::asio::ip::address::from_string(address, error),
boost::lexical_cast<int> (port));
endpoints.push_back(endpoint);
}
for (const auto& port : ports)
{
boost::asio::ip::udp::endpoint endpoint(
boost::asio::ip::address::from_string(address, error),
boost::lexical_cast<int>(port));
endpoints.push_back(endpoint);
}
}
}