Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cppcheck found some issues. Solved some of them. #33

Merged
merged 3 commits into from
Jul 5, 2013

Conversation

troyane
Copy link
Contributor

@troyane troyane commented Jul 4, 2013

  • Member variables ControlDoublePrivate::m_trackType and
    ControlDoublePrivate::m_trackFlags was not initialized in the
    constructor.
  • SoundSourceProxy::ParseHeader: return OK instead of 0.
  • TrackInfoObject::parse: omitted implicit cast.
  • TrackCollection: added references to arguments in methods
    getTrackSource...
  • chromaprinter.cpp: Memory leak: pData (return without freeing
    pData).
  • In GLSLWaveformRendererSignal::createFrameBuffers was strange
    expression: m_framebuffer->isValid() && m_framebuffer->isValid().
  • Lots of postfix ++/-- changed to prefix form.

 - Member variables `ControlDoublePrivate::m_trackType` and
`ControlDoublePrivate::m_trackFlags` was not initialized in the
constructor.
 - `SoundSourceProxy::ParseHeader`: return `OK` instead of `0`.
 - `TrackInfoObject::parse`: omitted implicit cast.
 - `TrackCollection`: added references to arguments in methods
`getTrackSource...`
 - `chromaprinter.cpp`: Memory leak: `pData` (return without freeing
`pData`).
 - In `GLSLWaveformRendererSignal::createFrameBuffers` was strange
expression: `m_framebuffer->isValid() && m_framebuffer->isValid()`.
 - Lots of postfix ++/-- changed to prefix form.
@@ -51,7 +51,7 @@ class BaseSqlTableModel : public QAbstractTableModel, public TrackModel {
bool initialized() const { return m_bInitialized; }
int getTrackId(const QModelIndex& index) const;
void search(const QString& searchText, const QString& extraFilter=QString());
void setSearch(const QString& searchText, const QString extraFilter=QString());
void setSearch(const QString& searchText, const QString& extraFilter=QString());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use spaces around =

@troyane
Copy link
Contributor Author

troyane commented Jul 5, 2013

Check it please. I corrected all issues.

@daschuer
Copy link
Member

daschuer commented Jul 5, 2013

LGTM, thank you @troyane!

daschuer added a commit that referenced this pull request Jul 5, 2013
Cppcheck found some issues. Solved some of them. And fixed typo in GLSLWaveformRendererSignal::createFrameBuffers
@daschuer daschuer merged commit d4fdc37 into mixxxdj:master Jul 5, 2013
@daschuer daschuer mentioned this pull request Dec 28, 2014
@daschuer daschuer mentioned this pull request Jun 11, 2018
11 tasks
Swiftb0y pushed a commit to Swiftb0y/mixxx that referenced this pull request Nov 3, 2019
m0dB pushed a commit to m0dB/mixxx that referenced this pull request Jan 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants