I've seen many occurrences of manual file path construction in the Mixxx code base. Instead QDir::filePath()/absoluteFilePath() should be used that eliminates all redundant path separators.
One example from cmdlineargs.h:
QDir::homePath().append("/").append(SETTINGS_PATH)
should be replaced by
QDir::home().absoluteFilePath(SETTINGS_PATH)
which is safer and simpler.
Looks like no one is reading their Qt API docs thoroughly ;) Composition of file paths should never be done using low-level string concatenation.
I've seen many occurrences of manual file path construction in the Mixxx code base. Instead QDir::filePath( )/absoluteFileP ath() should be used that eliminates all redundant path separators.
One example from cmdlineargs.h: :homePath( ).append( "/").append( SETTINGS_ PATH) :home() .absoluteFilePa th(SETTINGS_ PATH)
QDir:
should be replaced by
QDir:
which is safer and simpler.
Looks like no one is reading their Qt API docs thoroughly ;) Composition of file paths should never be done using low-level string concatenation.