Skip to content

Dao cleanup#44

Merged
daschuer merged 6 commits into
mixxxdj:masterfrom
troyane:DAO_cleanup
Jul 13, 2013
Merged

Dao cleanup#44
daschuer merged 6 commits into
mixxxdj:masterfrom
troyane:DAO_cleanup

Conversation

@troyane
Copy link
Copy Markdown
Contributor

@troyane troyane commented Jul 12, 2013

Added usage of nice macro LOG_FAILED_QUERY(query) instead of qDebug'ing
lastErrors.
In libraryscanner.cpp avoid #ifdefs by using Qt's
QDir::toNativeSeparators.
Changed postfix increment to prefix.
Added const to functions signatures.

troyane added 5 commits July 11, 2013 21:34
Added usage of nice macro LOG_FAILED_QUERY(query) instead of qDebug'ing
lastErrors.
In libraryscanner.cpp avoid #ifdefs by using Qt's
QDir::toNativeSeparators.
Changed postfix increment to prefix.
Added const to functions signatures.
Added usage of nice macro LOG_FAILED_QUERY(query) instead of qDebug'ing
lastErrors.
In libraryscanner.cpp avoid #ifdefs by using Qt's
QDir::toNativeSeparators.
Changed postfix increment to prefix.
Added const to functions signatures.
Conflicts:
	src/library/dao/libraryhashdao.h
Comment thread src/library/dao/libraryhashdao.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.

Please leave as pass-by-value because we mutate this list and the caller does not expect that (and reuses it elsewhere).

Alternatively you could pass a const reference and clone the QStringList in this method.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

What is preferable? Just leave as is was, right?

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.

They're roughly equivalent :) leaving as it was works.

@rryan
Copy link
Copy Markdown
Member

rryan commented Jul 12, 2013

Thanks for the changes Nazar -- looks good to me other than the pass-by-reference issue I pointed out.

@troyane
Copy link
Copy Markdown
Contributor Author

troyane commented Jul 13, 2013

Leaved Leaved LibraryHashDAO::updateDirectoryStatuses arguments as it was.

@daschuer
Copy link
Copy Markdown
Member

Thank you @troyane

daschuer added a commit that referenced this pull request Jul 13, 2013
@daschuer daschuer merged commit 7076b58 into mixxxdj:master Jul 13, 2013
@daschuer daschuer mentioned this pull request Dec 28, 2014
@daschuer daschuer mentioned this pull request Jun 11, 2018
11 tasks
uklotzde pushed a commit that referenced this pull request May 22, 2020
Add hotcue shift controls to Deere & Latenight, refine icons in Tango
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
Add needed clearfix to get-involved page + misc fixes
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.

3 participants