Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion libthedesk/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* *************************************/
#include "common.h"

int Common::getInsertionIndex(QStringList preferredOrder, QStringList currentItems, QString item) {
int Common::getInsertionIndex(const QStringList& preferredOrder, const QStringList& currentItems, const QString& item) {
//First, check to see if there is a preferred order for this item
if (!preferredOrder.contains(item)) {
//No preferred order so just add it at the end
Expand Down
2 changes: 1 addition & 1 deletion libthedesk/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ namespace Common {
* @param item The name of the current item
* @return An index, or -1 to add to the end of the layout
*/
int getInsertionIndex(QStringList preferredOrder, QStringList currentItems, QString item);
int getInsertionIndex(const QStringList& preferredOrder, const QStringList& currentItems, const QString& item);
}

#endif // COMMON_H