mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-18 21:23:02 +00:00
Apply clang-tidy ckecks readability-make-member-function-const and readability-qualified-auto
This commit is contained in:
parent
21352a80d1
commit
89ec03ecbe
@ -271,7 +271,7 @@ int gnss_sdr_fpga_sample_counter::general_work(int noutput_items __attribute__((
|
||||
}
|
||||
|
||||
|
||||
void gnss_sdr_fpga_sample_counter::wait_for_interrupt()
|
||||
void gnss_sdr_fpga_sample_counter::wait_for_interrupt() const
|
||||
{
|
||||
int32_t irq_count;
|
||||
ssize_t nb;
|
||||
|
@ -60,7 +60,7 @@ private:
|
||||
void open_device(void);
|
||||
bool start();
|
||||
bool stop();
|
||||
void wait_for_interrupt(void);
|
||||
void wait_for_interrupt(void) const;
|
||||
|
||||
volatile uint32_t *map_base; // driver memory map
|
||||
|
||||
|
@ -164,7 +164,7 @@ int32_t find_uio_num(const std::string &device_name, uint32_t device_num)
|
||||
// search for the requested device driver
|
||||
fs::path path(uio_dir);
|
||||
std::vector<fs::directory_entry> dirs;
|
||||
for (auto &p : fs::directory_iterator(path))
|
||||
for (const auto &p : fs::directory_iterator(path))
|
||||
{
|
||||
dirs.push_back(p);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user