Skip to content

Commit

Permalink
compatibility(MSVC): rename 'interface' to '_interface'
Browse files Browse the repository at this point in the history
  • Loading branch information
agsimfzi committed Aug 19, 2023
1 parent 2eab7b4 commit 5d17622
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 5d17622

Please sign in to comment.