D18420: Optimize and reduce code in GuiObserver

Christoph Roick noreply at phabricator.kde.org
Sun Jan 20 21:25:15 GMT 2019


croick created this revision.
croick added a reviewer: LabPlot.
Herald added a project: KDE Edu.
Herald added a subscriber: kde-edu.
croick requested review of this revision.

REVISION SUMMARY
  - use template function for dock widget creation
  - use template function for aspect list casting
  - use compile-time hashes for class name dependent branches (switch instead of if-else if-...) to save a lot of string comparisons

TEST PLAN
  Select objects in the project explorer and observe
  the dock widget.

REPOSITORY
  R262 LabPlot

BRANCH
  guiobserver

REVISION DETAIL
  https://phabricator.kde.org/D18420

AFFECTED FILES
  src/kdefrontend/GuiObserver.cpp

To: croick, #labplot
Cc: kde-edu, narvaez, apol
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-edu/attachments/20190120/a3dfbbd1/attachment.html>


More information about the kde-edu mailing list