Skip to content

qt: use Singleton when possible

Fatih Uzunoğlu requested to merge fuzun/vlc:qml-refactor-singleton into master

I guess class Singleton was not used everywhere because variadic templates were not available back then. For example, 12 years old TODO says: "Make this class be a public Singleton" in extensions.hpp.

I also add a "non-locking" Singleton specialization which allows direct access to the instance member. Default is locking to not change behavior of already used singletons.

Edited by Fatih Uzunoğlu

Merge request reports