Fixed Clang warnings in itemhandlers.
Fixed some Clang warnings in protocols.