Skip to content

Added 'const' or '&' to arguments when needed.#32

Merged
daschuer merged 4 commits into
mixxxdj:masterfrom
troyane:DAO_cleanup
Jul 5, 2013
Merged

Added 'const' or '&' to arguments when needed.#32
daschuer merged 4 commits into
mixxxdj:masterfrom
troyane:DAO_cleanup

Conversation

@troyane
Copy link
Copy Markdown
Contributor

@troyane troyane commented Jul 3, 2013

I was learning DAO's code. I found that it would be more simpler to understand code if there are const qualifiers for function arguments. Also, in this way we can avoid some errors and help compiler.

About references -- whenever we don't need object's copy -- we just use it's reference.

Comment thread src/library/dao/analysisdao.cpp Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

bool AnalysisDao::saveDataToFile(const QString& fileName, const QByteArray& data) const {

troyane added 3 commits July 4, 2013 10:57
If track ID List is not used by the callers afterwards, use pointer;
output parameters are at the end of the parameter list.
@daschuer
Copy link
Copy Markdown
Member

daschuer commented Jul 5, 2013

LGTM! Thank you.

Please note: There is no notification send out if you add a commit. So please write a "finish" comment when you think you are finished. This way the possible reviewers will be informed.

daschuer added a commit that referenced this pull request Jul 5, 2013
Added 'const' or '&' to arguments when needed.
@daschuer daschuer merged commit 5471787 into mixxxdj:master Jul 5, 2013
@troyane
Copy link
Copy Markdown
Contributor Author

troyane commented Jul 5, 2013

Thank you, @daschuer. I'll write "finish" every time henceforward.

@daschuer daschuer mentioned this pull request Dec 28, 2014
@daschuer daschuer mentioned this pull request Jun 11, 2018
11 tasks
daschuer added a commit that referenced this pull request Aug 9, 2018
Swiftb0y referenced this pull request in Swiftb0y/mixxx Nov 3, 2019
Holzhaus pushed a commit to Holzhaus/mixxx that referenced this pull request Aug 23, 2020
m0dB pushed a commit to m0dB/mixxx that referenced this pull request Jan 21, 2024
koushikcs562 pushed a commit to koushikcs562/mixxx that referenced this pull request Dec 23, 2025
Added link to qual tasks and updated project 9 requirements.

---------

Signed-off-by: Murayyiam-Parvez <murayyiam@gmail.com>
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