mirror of
https://github.com/jkriege2/JKQtPlotter.git
synced 2024-12-25 01:51:49 +08:00
removed compiler warnings
This commit is contained in:
parent
37afd67496
commit
936ae5b410
@ -4,14 +4,14 @@
|
||||
#include "jkqtplotter/jkqtplotter.h"
|
||||
#include "jkqtplotter/jkqtpgraphsevaluatedfunction.h"
|
||||
|
||||
double sinc(double x, void* params) {
|
||||
double sinc(double x, void* /*params*/) {
|
||||
return 10.0*sin(x)/x;
|
||||
}
|
||||
|
||||
struct SincSqr {
|
||||
public:
|
||||
inline SincSqr(double amplitude): a(amplitude) {}
|
||||
inline double operator()(double x, void* params) {
|
||||
inline double operator()(double x, void* /*params*/) {
|
||||
return a*sin(x)*sin(x)/x/x;
|
||||
}
|
||||
private:
|
||||
|
Loading…
Reference in New Issue
Block a user