Conversation
Android libraries can't be placed inside subdirectory, so to distinguish plugins from regular libraries the new prefix is used.
| #include "channelpowersink.h" | ||
|
|
||
| ChannelPowerSink::ChannelPowerSink(ChannelPower *channelPower) : | ||
| m_channelPower(channelPower), |
There was a problem hiding this comment.
I think it should be removed from the constructor parameters
| m_aircraftRegExp.optimize(); | ||
| } | ||
|
|
||
| virtual ~ModelMatch() |
There was a problem hiding this comment.
or "virtual ~ModelMatch = default" or better "~ModelMatch final = default"
There was a problem hiding this comment.
Right, default semantics is better :)
I'll keep virtual destructor, because class isn't final, so finalizing it's destruction less consistent.
There was a problem hiding this comment.
Btw, there are lot of warnings like "warning: class with destructor marked 'final' cannot be inherited from [-Wfinal-dtor-non-final-class]". So marking destructor final causes more warnings.
| #include "aptdemodsink.h" | ||
|
|
||
| APTDemodSink::APTDemodSink(APTDemod *packetDemod) : | ||
| m_aptDemod(packetDemod), |
There was a problem hiding this comment.
Same remark as with channelpowersink.cpp
| } | ||
|
|
||
| DABDemodSink::DABDemodSink(DABDemod *packetDemod) : | ||
| m_dabDemod(packetDemod), |
There was a problem hiding this comment.
Remove from constructor parameters if not needed
| @@ -31,7 +31,6 @@ | |||
| ILSDemodSink::ILSDemodSink(ILSDemod *ilsDemod) : | |||
There was a problem hiding this comment.
Remove from constructor parameters if not needed
| #include "navtexdemodsink.h" | ||
|
|
||
| NavtexDemodSink::NavtexDemodSink(NavtexDemod *packetDemod) : | ||
| m_navtexDemod(packetDemod), |
There was a problem hiding this comment.
Remove from constructor parameters if not needed
|
|
||
| PagerDemodSink::PagerDemodSink(PagerDemod *pagerDemod) : | ||
| m_scopeSink(nullptr), | ||
| m_pagerDemod(pagerDemod), |
There was a problem hiding this comment.
Remove from constructor parameters if not needed
| #include "rttydemodsink.h" | ||
|
|
||
| RttyDemodSink::RttyDemodSink(RttyDemod *packetDemod) : | ||
| m_rttyDemod(packetDemod), |
There was a problem hiding this comment.
Remove from constructor parameters if not needed
| #include "freqscannersink.h" | ||
|
|
||
| FreqScannerSink::FreqScannerSink(FreqScanner *ilsDemod) : | ||
| m_freqScanner(ilsDemod), |
There was a problem hiding this comment.
Remove from constructor parameters if not needed
|
|
||
| HeatMapSink::HeatMapSink(HeatMap *heatMap) : | ||
| m_scopeSink(nullptr), | ||
| m_heatMap(heatMap), |
There was a problem hiding this comment.
Remove from constructor parameters if not needed
| FFTWindow::Function m_fftWindow; | ||
| bool m_reverseFilter; | ||
| static const uint32_t m_maxFFTBands = 20; | ||
| uint32_t m_maxFFTBands; |
There was a problem hiding this comment.
As is it throws error that m_maxFFTBands couldn't be resolved.
Because "static const" member isn't definition but rather a declaration.
| m_reverseAPIChannelIndex = 0; | ||
| m_workspaceIndex = 0; | ||
| m_hidden = false; | ||
| m_maxFFTBands = 32; |
There was a problem hiding this comment.
Sorry, leftovers from experiments :) I'll undo the change.
| #include "noisefiguresink.h" | ||
|
|
||
| NoiseFigureSink::NoiseFigureSink(NoiseFigure *noiseFigure) : | ||
| m_noiseFigure(noiseFigure), |
There was a problem hiding this comment.
Remove from constructor parameters if not needed
|
|
||
| RadioClockSink::RadioClockSink(RadioClock *radioClock) : | ||
| m_scopeSink(nullptr), | ||
| m_radioClock(radioClock), |
There was a problem hiding this comment.
Remove from constructor parameters if not needed
| ChannelAPI(m_channelIdURI, ChannelAPI::StreamSingleSource), | ||
| m_deviceAPI(deviceAPI), | ||
| m_frequencyOffset(0), | ||
| m_basebandSampleRate(0), |
There was a problem hiding this comment.
Why removing it from the initialization list ?
There was a problem hiding this comment.
"m_linearGain" is never used.
And the line with 'm_basebandSampleRate' only got comma removed.
| DVB2::DVB2(void) | ||
| { | ||
| // Clear the transport queue | ||
| m_tp_q.empty(); |
There was a problem hiding this comment.
m_tp_q appears to be unused so it can be removed from the class.
There was a problem hiding this comment.
It's used in "unpack_transport_packet_add_crc" as a temporary storage. But I think it's kept inside class to (maybe?) reuse some internal structures.
| sampleMic = (int)((signed char) buffer[b++]) << 8; | ||
| sampleMic += (int)((unsigned char)buffer[b++]); | ||
| // sampleMic | ||
| b+=2; |
| x += (uint32_t)clock(); | ||
| #endif | ||
| x ^= (uint32_t)((uint8_t *)this - (uint8_t *)0); | ||
| x ^= (uint32_t)(size_t)this; |
There was a problem hiding this comment.
This is substantially different from the original. Did you test it?
There was a problem hiding this comment.
"rtprandom.cpp:69:37: Performing pointer subtraction with a null pointer may have undefined behavior"
There was a problem hiding this comment.
Well, for C this is definitely UB. For C++ this should be valid conversion. To make compiler happy i've changed it.
Since this is just a random number generator and converting pointer to integer is valid operation, should be ok.
|
|
||
| #include <QOpenGLShaderProgram> | ||
| #include <QOpenGLFunctions> | ||
| #include <QOpenGLFunctions_3_3_Core> |
There was a problem hiding this comment.
Why is it not in the #else next? Did you test it?
There was a problem hiding this comment.
I'll fix that. Don't know why, maybe copy-paste from glshadertvarray.h.
Shouldn't be an issue since none of the QOpenGLFunctions_*_Core headers are used. Probably safe to remove this include completely. But I can't test for all platforms, so I'll keep the include.
| } | ||
|
|
||
| void MainWindow::orientationChanged(Qt::ScreenOrientation orientation) const | ||
| void MainWindow::orientationChanged(Qt::ScreenOrientation orientation) |
There was a problem hiding this comment.
Yes, "setTabPosition" ,ethod is non-const, so calling it from const method isn't correct.
| void commandKeyPressed(Qt::Key key, Qt::KeyboardModifiers keyModifiers, bool release) const; | ||
| void fftWisdomProcessFinished(int exitCode, QProcess::ExitStatus exitStatus); | ||
| void orientationChanged(Qt::ScreenOrientation orientation) const; | ||
| void orientationChanged(Qt::ScreenOrientation orientation); |
There was a problem hiding this comment.
Yes, "setTabPosition" ,ethod is non-const, so calling it from const method isn't correct.
There was a problem hiding this comment.
This is a code smell pointed out by Sonarlint so I am surprised this is not actually const. We'll sort this out later...
|



Follow up and fix for #2243