Fix a few minor issues detected by CppCheck
Fix a few minor issues detected by CppCheck

Thanks to Dmitry Andriyankov for reporting.
lightslife/cppformat,mojoBrendan/fmt,cppformat/cppformat,alabuzhev/fmt,cppformat/cppformat,dean0x7d/cppformat,nelson4722/cppformat,wangshijin/cppformat,seungrye/cppformat,blaquee/cppformat,nelson4722/cppformat,blaquee/cppformat,dean0x7d/cppformat,dean0x7d/cppformat,mojoBrendan/fmt,lightslife/cppformat,blaquee/cppformat,wangshijin/cppformat,Jopie64/cppformat,cppformat/cppformat,lightslife/cppformat,seungrye/cppformat,mojoBrendan/fmt,wangshijin/cppformat,Jopie64/cppformat,alabuzhev/fmt,nelson4722/cppformat,Jopie64/cppformat,alabuzhev/fmt,seungrye/cppformat