Skip to content

Commit

Permalink
Merge pull request #21 from agus7fauzi/master
Browse files Browse the repository at this point in the history
Compatibility(MSVC): rename 'interface' to '_interface'
  • Loading branch information
lganzzzo authored Aug 19, 2023
2 parents 2eab7b4 + 5d17622 commit 5f9424f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/app/TestComponent.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,16 @@ class TestComponent {
* Create server ConnectionProvider of oatpp virtual connections for test
*/
OATPP_CREATE_COMPONENT(std::shared_ptr<oatpp::network::ServerConnectionProvider>, serverConnectionProvider)([] {
OATPP_COMPONENT(std::shared_ptr<oatpp::network::virtual_::Interface>, interface);
return oatpp::network::virtual_::server::ConnectionProvider::createShared(interface);
OATPP_COMPONENT(std::shared_ptr<oatpp::network::virtual_::Interface>, _interface);
return oatpp::network::virtual_::server::ConnectionProvider::createShared(_interface);
}());

/**
* Create client ConnectionProvider of oatpp virtual connections for test
*/
OATPP_CREATE_COMPONENT(std::shared_ptr<oatpp::network::ClientConnectionProvider>, clientConnectionProvider)([] {
OATPP_COMPONENT(std::shared_ptr<oatpp::network::virtual_::Interface>, interface);
return oatpp::network::virtual_::client::ConnectionProvider::createShared(interface);
OATPP_COMPONENT(std::shared_ptr<oatpp::network::virtual_::Interface>, _interface);
return oatpp::network::virtual_::client::ConnectionProvider::createShared(_interface);
}());

/**
Expand Down

0 comments on commit 5f9424f

Please sign in to comment.