use a parameter to avoid temporarily changing member variables

Made library_role_e an enum class

(0) -300 -100 -30 -10 -2 tip

mercurial