mirror of
https://github.com/hanzoai/datastore.git
synced 2026-09-26 13:55:07 +00:00
Fix style
This commit is contained in:
@@ -83,6 +83,7 @@ NamespaceIndentation: None
|
||||
ObjCBlockIndentWidth: 4
|
||||
ObjCSpaceAfterProperty: true
|
||||
ObjCSpaceBeforeProtocolList: true
|
||||
PackConstructorInitializers: Never
|
||||
PenaltyBreakBeforeFirstCallParameter: 19
|
||||
PenaltyBreakComment: 300
|
||||
PenaltyBreakFirstLessLess: 120
|
||||
|
||||
@@ -9,17 +9,22 @@ namespace DB
|
||||
{
|
||||
|
||||
/// Create Identifier from parts
|
||||
Identifier::Identifier(const std::vector<std::string> & parts_) : parts(parts_), full_name(boost::algorithm::join(parts, "."))
|
||||
Identifier::Identifier(const std::vector<std::string> & parts_)
|
||||
: parts(parts_)
|
||||
, full_name(boost::algorithm::join(parts, "."))
|
||||
{
|
||||
}
|
||||
|
||||
/// Create Identifier from parts
|
||||
Identifier::Identifier(std::vector<std::string> && parts_) : parts(std::move(parts_)), full_name(boost::algorithm::join(parts, "."))
|
||||
Identifier::Identifier(std::vector<std::string> && parts_)
|
||||
: parts(std::move(parts_))
|
||||
, full_name(boost::algorithm::join(parts, "."))
|
||||
{
|
||||
}
|
||||
|
||||
/// Create Identifier from full name, full name is split with '.' as separator.
|
||||
Identifier::Identifier(const std::string & full_name_) : full_name(full_name_)
|
||||
Identifier::Identifier(const std::string & full_name_)
|
||||
: full_name(full_name_)
|
||||
{
|
||||
boost::split(parts, full_name, [](char c) { return c == '.'; });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user