It took me a little digging to find out what bitwise or was doing here. Could you add a comment here from the c++ reference: These flags can be combined with the bitwise OR operator (|).