Skip to content

Commit 6297d9e

Browse files
committed
chore: remove iostream and int to string conversion
1 parent eba443b commit 6297d9e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

common_libraries/low_pass_fir_filter/low_pass_fir_filter.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#include "low_pass_fir_filter.hpp"
22
#include <stdexcept>
3-
#include <string>
4-
#include <iostream>
3+
#include <cstdio>
54

65
LowPassFIRFilter::LowPassFIRFilter() : LowPassFIRFilter(1) {}
76

@@ -10,8 +9,7 @@ LowPassFIRFilter::LowPassFIRFilter(unsigned int order)
109
coefficient(1.0f / (order + 1)), output(0) {
1110
// Valid input check
1211
if (order < 1 || order > MAX_LP_FIR_ORDER) {
13-
throw std::invalid_argument("order must be at least 1 and less than " +
14-
std::to_string(MAX_LP_FIR_ORDER));
12+
throw std::invalid_argument("order must be at least 1 and less than the max order");
1513
}
1614
}
1715

0 commit comments

Comments
 (0)