#i124422# fix comparisons between pointers and bools or integers

comparing pointers with bools or integers is not a good idea and
clang>=3.4 or xcode>=5.1 now report errors for such code. The
errors break the build and so they have to be fixed.


git-svn-id: https://svn.apache.org/repos/asf/openoffice/trunk@1594862 13f79535-47bb-0310-9956-ffa450edef68