mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-09-06 00:37:26 +00:00
chore: update ZoneCodeGenerator code style
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#include "NamespaceBuilder.h"
|
||||
|
||||
#include <format>
|
||||
#include <sstream>
|
||||
|
||||
std::string NamespaceBuilder::Combine(const std::string& _namespace, const std::string& name)
|
||||
@@ -7,10 +8,7 @@ std::string NamespaceBuilder::Combine(const std::string& _namespace, const std::
|
||||
if (_namespace.empty())
|
||||
return name;
|
||||
|
||||
std::ostringstream str;
|
||||
str << _namespace << "::" << name;
|
||||
|
||||
return str.str();
|
||||
return std::format("{}::{}", _namespace, name);
|
||||
}
|
||||
|
||||
bool NamespaceBuilder::IsEmpty() const
|
||||
|
Reference in New Issue
Block a user