Base: C++ core guidelines: init variables

This commit is contained in:
wmayer
2023-08-24 14:21:05 +02:00
committed by wwmayer
parent 53a4fb14c3
commit 010dca8303
43 changed files with 622 additions and 626 deletions

View File

@@ -80,7 +80,7 @@ const char* Exception::what() const noexcept
void Exception::ReportException () const
{
if (!_isReported) {
const char *msg;
const char *msg{};
if (_sErrMsg.empty())
msg = typeid(*this).name();
else
@@ -304,7 +304,7 @@ const char* FileException::what() const noexcept
void FileException::ReportException () const
{
if (!_isReported) {
const char *msg;
const char *msg{};
if (_sErrMsgAndFileName.empty())
msg = typeid(*this).name();
else