The default ctor for `std::string` will initialize it. This is superfluous and can lead to extraneous string allocations. Simply do `std::string sourceName;`