There is this thing called bool to use for Boolean flags

Change-Id: Ifc25cb29b17e33d19e8f4ccafc653fdb686f2b5a
WaE: passing OUString by value, rather pass by reference

Change-Id: I181d16d26c4a144568da37add23939d57a7e1ca4