clang-format

pull/749/head release-1.27.0
Tatsuhiro Tsujikawa 2016-09-16 21:52:58 +09:00
parent cf96bec654
commit 16797b5264
10 changed files with 27 additions and 34 deletions

View File

@ -62,8 +62,7 @@ BtLeecherStateChoke::PeerEntry::PeerEntry(const std::shared_ptr<Peer>& peer)
{
}
BtLeecherStateChoke::PeerEntry::PeerEntry(const PeerEntry& c)
= default;
BtLeecherStateChoke::PeerEntry::PeerEntry(const PeerEntry& c) = default;
void BtLeecherStateChoke::PeerEntry::swap(PeerEntry& c)
{

View File

@ -65,8 +65,7 @@ BtSeederStateChoke::PeerEntry::PeerEntry(const std::shared_ptr<Peer>& peer)
{
}
BtSeederStateChoke::PeerEntry::PeerEntry(const PeerEntry& c)
= default;
BtSeederStateChoke::PeerEntry::PeerEntry(const PeerEntry& c) = default;
BtSeederStateChoke::PeerEntry::~PeerEntry() = default;

View File

@ -42,8 +42,7 @@ DNSCache::AddrEntry::AddrEntry(const std::string& addr)
{
}
DNSCache::AddrEntry::AddrEntry(const AddrEntry& c)
= default;
DNSCache::AddrEntry::AddrEntry(const AddrEntry& c) = default;
DNSCache::AddrEntry::~AddrEntry() = default;
@ -61,8 +60,7 @@ DNSCache::CacheEntry::CacheEntry(const std::string& hostname, uint16_t port)
{
}
DNSCache::CacheEntry::CacheEntry(const CacheEntry& c)
= default;
DNSCache::CacheEntry::CacheEntry(const CacheEntry& c) = default;
DNSCache::CacheEntry::~CacheEntry() = default;

View File

@ -48,8 +48,7 @@ Option::Option()
Option::~Option() = default;
Option::Option(const Option& option)
= default;
Option::Option(const Option& option) = default;
Option& Option::operator=(const Option& option)
{

View File

@ -344,9 +344,9 @@ std::vector<OptionHandler*> OptionHandlerFactory::createOptionHandlers()
handlers.push_back(op);
}
{
OptionHandler* op(new BooleanOptionHandler(
PREF_SAVE_NOT_FOUND, TEXT_SAVE_NOT_FOUND, A2_V_TRUE,
OptionHandler::OPT_ARG));
OptionHandler* op(new BooleanOptionHandler(PREF_SAVE_NOT_FOUND,
TEXT_SAVE_NOT_FOUND, A2_V_TRUE,
OptionHandler::OPT_ARG));
op->addTag(TAG_ADVANCED);
op->setInitialOption(true);
op->setChangeOption(true);

View File

@ -43,8 +43,7 @@ PeerAddrEntry::PeerAddrEntry(const std::string& ipaddr, uint16_t port,
{
}
PeerAddrEntry::PeerAddrEntry(const PeerAddrEntry& c)
= default;
PeerAddrEntry::PeerAddrEntry(const PeerAddrEntry& c) = default;
PeerAddrEntry::~PeerAddrEntry() = default;

View File

@ -43,8 +43,7 @@ Range::Range(int64_t startByte, int64_t endByte, int64_t entityLength)
{
}
Range::Range(const Range& c)
= default;
Range::Range(const Range& c) = default;
Range::~Range() = default;

View File

@ -279,20 +279,20 @@ bool SessionSerializer::save(IOFile& fp) const
for (const auto& dr : results) {
auto save = false;
switch (dr->result) {
case error_code::FINISHED:
case error_code::REMOVED:
save = dr->option->getAsBool(PREF_FORCE_SAVE);
break;
case error_code::IN_PROGRESS:
save = saveInProgress_;
break;
case error_code::RESOURCE_NOT_FOUND:
case error_code::MAX_FILE_NOT_FOUND:
save = saveError_ && dr->option->getAsBool(PREF_SAVE_NOT_FOUND);
break;
default:
save = saveError_;
break;
case error_code::FINISHED:
case error_code::REMOVED:
save = dr->option->getAsBool(PREF_FORCE_SAVE);
break;
case error_code::IN_PROGRESS:
save = saveInProgress_;
break;
case error_code::RESOURCE_NOT_FOUND:
case error_code::MAX_FILE_NOT_FOUND:
save = saveError_ && dr->option->getAsBool(PREF_SAVE_NOT_FOUND);
break;
default:
save = saveError_;
break;
}
if (save && !writeDownloadResult(fp, metainfoCache, dr, false)) {
return false;

View File

@ -66,7 +66,8 @@ ValueBaseStructParserStateMachine::ValueBaseStructParserStateMachine()
stateStack_.push(valueState);
}
ValueBaseStructParserStateMachine::~ValueBaseStructParserStateMachine() = default;
ValueBaseStructParserStateMachine::~ValueBaseStructParserStateMachine() =
default;
void ValueBaseStructParserStateMachine::reset()
{

View File

@ -45,8 +45,7 @@ UriStruct::UriStruct() : port(0), hasPassword(false), ipv6LiteralAddress(false)
{
}
UriStruct::UriStruct(const UriStruct& c)
= default;
UriStruct::UriStruct(const UriStruct& c) = default;
UriStruct::~UriStruct() = default;