-
-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get rid of Q3PtrList wrapper #748
Comments
Getting rid of Q3PtrList has a subtle complication: some parts of the codebase use the "auto delete" feature.
If it were only for ownership control that would be a bit easier to refactor, but as I understand some functional logic relies on it too, which makes it impossible in some cases to straightforwardly replace one with another. |
Understood. Then let's keep the things as is. Let this issue be open for some time. Maybe some solution will appear. |
Qucs/qucs@141b840 qt3_combat removed. |
Yes, we could learn how this patch is done and use the similar concept for Qucs-S. At least |
I believe the |
I looked a bit refactoring some section but some code used Linklist some section use List so we should be mixed std::list and QList or QLinkList in qt5combat module or std::vector maybe used because some section use at() method. |
Reopening. Not finished yet. |
QList has stl-style or java style iterator some code section call next hasNext maybe those 2 class can be use. https://doc.qt.io/qt-6/qlistiterator.html |
I have added a TODO list for this issue. Maybe the solution for Schematic class members will appear later. Let's keep this issue open. |
This is a long term refactoring task. It doesn't directly affect the simulation or program appearance, but will improve the code readability after implementation. Currently the main application uses a wrapper for
Q3PtrList
class inqt3_compat/q3ptrlist.h
It would be good to replace this withQList
.TODO list
Node
class Refactor node #845 Fix segfault when component is placed over a wire #881Component::Properties
to QList Migrate Properties to QList and Some Refactoring #858The text was updated successfully, but these errors were encountered: