clangFormating base class

This commit is contained in:
lakedaemon
2016-07-15 15:21:09 +02:00
parent b22db6e8eb
commit 0328dedab5

View File

@@ -86,7 +86,10 @@ class BaseGenerator {
const std::string LastNamespacePart(const Namespace &ns) { const std::string LastNamespacePart(const Namespace &ns) {
auto &namespaces = ns.components; auto &namespaces = ns.components;
if (namespaces.size()) return *(namespaces.end() - 1); else return std::string(""); if (namespaces.size())
return *(namespaces.end() - 1);
else
return std::string("");
} }
// tracks the current namespace for early exit in WrapInNameSpace // tracks the current namespace for early exit in WrapInNameSpace