And keeping on with the style... :-) One-liner blocks are ok without braces, except an if-else where one of the branches has more than one lines and the other just one (then braces in both).

Also, line breaks after a block are welcome.

BTW, wouldn't this series of ```if (m_mode...)``` fit better with in a ```switch```?