diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2017-10-20 16:43:05 -0700 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2017-10-23 16:11:13 -0700 |
| commit | 92d1a53215b2cc23dc090368d5218d42e195c478 (patch) | |
| tree | 9c19b72d92f8e406347ef32d1b33bc30ac49b995 /toolsrc/include | |
| parent | 90a3a8a3afef435d5cfb68b2e16010c2329c55a6 (diff) | |
| download | vcpkg-92d1a53215b2cc23dc090368d5218d42e195c478.tar.gz vcpkg-92d1a53215b2cc23dc090368d5218d42e195c478.zip | |
[LineInfo] Store empty string instead of null in default construction
Diffstat (limited to 'toolsrc/include')
| -rw-r--r-- | toolsrc/include/vcpkg/base/lineinfo.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toolsrc/include/vcpkg/base/lineinfo.h b/toolsrc/include/vcpkg/base/lineinfo.h index 62973462a..e7e8c3031 100644 --- a/toolsrc/include/vcpkg/base/lineinfo.h +++ b/toolsrc/include/vcpkg/base/lineinfo.h @@ -9,7 +9,7 @@ namespace vcpkg int line_number; const char* file_name; - constexpr LineInfo() : line_number(0), file_name(nullptr) {} + constexpr LineInfo() : line_number(0), file_name("") {} constexpr LineInfo(const int lineno, const char* filename) : line_number(lineno), file_name(filename) {} std::string to_string() const; |
