Base: modernize C++: return braced init list

This commit is contained in:
wmayer
2023-08-17 13:14:46 +02:00
committed by wwmayer
parent 2636e164f3
commit 2bc90e6090
24 changed files with 117 additions and 120 deletions

View File

@@ -295,7 +295,7 @@ std::string FileInfo::extension() const
{
std::string::size_type pos = FileName.find_last_of('.');
if (pos == std::string::npos)
return std::string();
return {};
return FileName.substr(pos+1);
}
@@ -303,7 +303,7 @@ std::string FileInfo::completeExtension() const
{
std::string::size_type pos = FileName.find_first_of('.');
if (pos == std::string::npos)
return std::string();
return {};
return FileName.substr(pos+1);
}