to minimize metadata lookups, pass the kpackage created in pluginloader
to the applet itself as args. the args structure will be used only by the
internal constructor and applet sublasses will get their args unaltered
Details
Details
- Reviewers
davidedmundson - Group Reviewers
Plasma - Commits
- R242:604aba0e241f: reuse KPackage instance between PluginLoader and Applet
plasma loads correctly, from 3 kpackage instantiation per applet to 2
(last is in the access manager)
Diff Detail
Diff Detail
- Repository
- R242 Plasma Framework (Library)
- Branch
- phab/kpackageinctor
- Lint
No Linters Available - Unit
No Unit Test Coverage
src/plasma/applet.cpp | ||
---|---|---|
98 | If anyone uses the old argument list syntax (where the first argument was a string or a kpluginmetadata) this will break. Can we be sure that the PluginLoader was the only user? |
src/plasma/applet.cpp | ||
---|---|---|
98 | yes, was completely undocumented. |