Merge two mini-functions for the hard coded list
It is done for the following reason:
1) Consistency with the unix backend of the QSerialPort class, where the
serialPortLockFilePath free function is also like this.
2) There is no point in having a separate free function for initializing a
variable when it is only used in one place.
3) It is less abstraction.
4) It is negligibly faster.
5) It is still a small enough free function, and naturally fits the one page
maximum limit for a function which is the general recommendation in projects.
6) Last, but not least: It also makes the code shorter and more concise.
Change-Id: Ie07f06521e11038bdd3cc504a56cadcf00e68269
Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com>
Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>