ra3xdh / qucs_s

Qucs-S is a circuit simulation program with Qt-based GUI
https://ra3xdh.github.io/
GNU General Public License v2.0
886 stars 115 forks source link

QString multi-arg refactoring for increasing performance. #868

Open dsm opened 4 months ago

dsm commented 4 months ago

Hi, I search code base with .arg([^)]*).arg this reg exp and it founds more than 800 lines of code.

Using multi-arg methods gives more performance and less memory usage. Assign this issue to me.

ra3xdh commented 4 months ago

Yes, the QtCreator shows warning on arg().arg().arg() chains. It is widely used in the project. Such call is not recommended in new Qt versions. The refactoring would improve the code quality.