Skip to content

Commit

Permalink
Scales destructor: move implementation into .cpp instead of .h
Browse files Browse the repository at this point in the history
  • Loading branch information
lschneiderbauer committed Jan 5, 2025
1 parent 3563dc0 commit f555708
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/fcwt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,10 @@ void Morlet::getWavelet(float scale, complex<float>* pwav, int pn) {
//================== Scales =====================================//
//==============================================================//

Scales::~Scales() {
free(scales);
}

Scales::Scales(Wavelet *wav, SCALETYPE st, int afs, float af0, float af1, int afn) {

fs = afs;
Expand Down
2 changes: 1 addition & 1 deletion src/fcwt.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ class Morlet : public Wavelet {
class Scales {
public:
FCWT_LIBRARY_API Scales(Wavelet *pwav, SCALETYPE st, int fs, float f0, float f1, int fn);
~Scales() { free(scales); };
~Scales();

// void FCWT_LIBRARY_API getScales(float *pfreqs, int pnf);
// void FCWT_LIBRARY_API getFrequencies(float *pfreqs, int pnf);
Expand Down

0 comments on commit f555708

Please sign in to comment.