Skip to content

Commit

Permalink
fixes for codacy
Browse files Browse the repository at this point in the history
  • Loading branch information
compiv committed Oct 21, 2019
1 parent 5c1e73c commit 387e4bb
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions include/CPVFramework/Container/ServiceFactory.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ namespace cpv {
}

/** Constructor **/
ServiceDependencyInjectionFactory(Container& container) :
explicit ServiceDependencyInjectionFactory(Container& container) :
dependencyDescriptors_(Extensions::getDependencyDescriptors(container)) { }

private:
Expand Down Expand Up @@ -110,7 +110,7 @@ namespace cpv {
}

/** Constructor **/
ServiceDependencyInjectionFactory(Container& container) :
explicit ServiceDependencyInjectionFactory(Container& container) :
dependencyDescriptors_(Extensions::getDependencyDescriptors(container)) { }

private:
Expand Down
2 changes: 1 addition & 1 deletion include/CPVFramework/HttpServer/HttpContext.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ namespace cpv {
serviceStorage_() { }

/** Constructor for null context, should set members later */
HttpContext(nullptr_t) :
explicit HttpContext(nullptr_t) :
request_(nullptr),
response_(nullptr),
clientAddress_(),
Expand Down
2 changes: 1 addition & 1 deletion include/CPVFramework/HttpServer/HttpServer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ namespace cpv {
* The last handler must not call the next handler, there is a real last handler
* but only returns exception future.
*/
HttpServer(const Container& container);
explicit HttpServer(const Container& container);

/** Move constructor (for incomplete member type) */
HttpServer(HttpServer&&);
Expand Down
2 changes: 1 addition & 1 deletion include/CPVFramework/Utility/Packet.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ namespace cpv {
}

SingleFragment() : fragment(), deleter() { }
SingleFragment(const seastar::net::fragment& fragmentVal) :
explicit SingleFragment(const seastar::net::fragment& fragmentVal) :
fragment(fragmentVal), deleter() { }
SingleFragment(const seastar::net::fragment& fragmentVal, seastar::deleter&& deleterVal) :
fragment(fragmentVal), deleter(std::move(deleterVal)) { }
Expand Down
2 changes: 1 addition & 1 deletion tests/Cases/Container/TestContainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ TEST(TestContainer, patchDoesNotBreakDIFactory) {
container.add<std::unique_ptr<int>>([] { return nullptr; });
container.add<std::unique_ptr<int>>([] { return std::make_unique<int>(101); });
cpv::ServicePatcher<std::string>::patch(
container, [] (std::string v) { return v + ".patched"; });
container, [] (const std::string& v) { return v + ".patched"; });
cpv::ServicePatcher<std::unique_ptr<int>>::patch(
container, [] (std::unique_ptr<int> v) {
if (v != nullptr) {
Expand Down

0 comments on commit 387e4bb

Please sign in to comment.