Skip to content

Optimize getInsertionIndex function parameters - #11

Open
381sm016 wants to merge 1 commit into
theCheeseboard:masterfrom
381sm016:improve-common-params
Open

381sm016 wants to merge 1 commit into
theCheeseboard:masterfrom
381sm016:improve-common-params

Conversation

@381sm016

@381sm016 381sm016 commented Nov 24, 2025

Copy link
Copy Markdown

Summary

Pass QStringList and QString parameters by const reference instead of by value in the Common::getInsertionIndex function to avoid unnecessary copies and improve performance.

Changes

  • Updated function signature in libthedesk/common.h to use const references
  • Updated function implementation in libthedesk/common.cpp to match signature

Pass QStringList and QString parameters by const reference instead of by value to avoid unnecessary copies and improve performance.
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.

1 participant