Ticket #40640: patch-qucs-filter-qf_filter.cpp.diff

File patch-qucs-filter-qf_filter.cpp.diff, 830 bytes (added by rowue@…, 11 years ago)

us-patch for qucs_filter.cpp

  • qucs-filter/qf_filter.cpp

    qf_filter::qf_filter () : 
    4343  ncomp (0), Comp (NULL) {
    4444}
    4545
    46 qf_filter::qf_filter (int n = 3, qfk k = UNDEF, qft t = LOWPASS) :
     46qf_filter::qf_filter (int n, qfk k, qft t) :
    4747  type (t), kind (k), ord (n), fc (0), bw (0), imp (1),
    4848  ncomp (0), Comp (NULL) {
    4949}
    5050
    51 qf_filter::qf_filter (qfk k = UNDEF, qft t = LOWPASS, qf_double_t r = 1,
     51qf_filter::qf_filter (qfk k, qft t, qf_double_t r,
    5252                      qf_double_t f = 1, qf_double_t b = 0) :
    5353  type (t), kind (k), fc (f), bw (b), imp (r), ncomp (0), Comp (NULL) {
    5454  fstart = fc - bw / 2;
    5555  fstop  = fc + bw / 2;
    5656}
    5757
    58 qf_filter::qf_filter (qfk k = UNDEF, qft t = LOWPASS) :
     58qf_filter::qf_filter (qfk k, qft t) :
    5959  type (t), kind (k), ord (0), fc (0), bw (0), imp (1),
    6060  ncomp (0), Comp (NULL) {
    6161}