ceph/ceph — pull request #1276 by dalgaaf (2014-02-19 21:38:27+00:00)
Title: Fixes from SCA

Several fixes for master from SCA (cppcheck), like:
- reduce scope of variables
- pass function parameter by reference
- prefer prefix ++/--operator for non-trivial iterator
- fix inefficient checking for variable emptiness
- remove slow and redundant c_str() calls