Refactor the specific extraction funtions in taglibextractor
so that they can be re-used for files of different mimetype,
but with the same tag types for their metadata.
No functional change intended.
Details
Diff Detail
- Repository
- R286 KFileMetaData
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
To be on the safe side here: I am allowed to modify private member functions regarding binary compatibility, right?
This page is a very good reference: https://community.kde.org/Policies/Binary_Compatibility_Issues_With_C%2B%2B
Non-virtual methods do not affect the class layout or the vtable layout, so you are safe here for sure. private or not does not matter.
src/extractors/taglibextractor.h | ||
---|---|---|
27 | Keep the includes in the implementation and just do a forward declaration of the types (possible as you only use these as pointer types in the header). |
Thanks, I already knew that side, but I tend to ask explicitly in case I misunderstood something. I really don't want to mess up frameworks :)
Thanks for the explanation!
src/extractors/taglibextractor.h | ||
---|---|---|
44 | can also be written as namespace TagLib::ID3v2 { class Tag; } namespace TagLib::MP4 { class Tag; } ... a little bit shorter, but otherwise just a matter of style preference ... |