Skip to content

Commit

Permalink
Merge pull request #136 from chevtche/master
Browse files Browse the repository at this point in the history
Fixed some consts
  • Loading branch information
tribal-tec committed Mar 16, 2016
2 parents b0fc2f1 + dfd9b1f commit c336d36
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions zeq/http/server.cpp
Expand Up @@ -247,7 +247,7 @@ class Server::Impl : public detail::Sender

namespace
{
std::string _getServerParameter( const int argc, const char* argv[] )
std::string _getServerParameter( const int argc, const char* const* argv )
{
for( int i = 0; i < argc; ++i )
{
Expand Down Expand Up @@ -286,7 +286,7 @@ Server::~Server()
{}


std::unique_ptr< Server > Server::parse( const int argc, const char* argv[] )
std::unique_ptr< Server > Server::parse( const int argc, const char* const* argv )
{
const std::string& param = _getServerParameter( argc, argv );
if( param.empty( ))
Expand All @@ -295,7 +295,7 @@ std::unique_ptr< Server > Server::parse( const int argc, const char* argv[] )
return std::unique_ptr< Server >( new Server( URI( param )));
}

std::unique_ptr< Server > Server::parse( const int argc, const char* argv[],
std::unique_ptr< Server > Server::parse( const int argc, const char* const* argv,
Receiver& shared )
{
const std::string& param = _getServerParameter( argc, argv );
Expand Down
4 changes: 2 additions & 2 deletions zeq/http/server.h
Expand Up @@ -63,9 +63,9 @@ class Server : public zeq::Receiver
* and a randomly chosen port
*/
ZEQ_API static std::unique_ptr< Server > parse( int argc,
const char* argv[] );
const char* const* argv );
ZEQ_API static std::unique_ptr< Server > parse( int argc,
const char* argv[],
const char* const* argv,
Receiver& shared );
/**
* Get the publisher URI.
Expand Down

0 comments on commit c336d36

Please sign in to comment.