C++11: N1984 auto
This commit is contained in:
@@ -337,7 +337,7 @@ bool CmdSync::send (
|
||||
{
|
||||
// It is important that the ':' be the *last* colon, in order to support
|
||||
// IPv6 addresses.
|
||||
std::string::size_type colon = to.rfind (':');
|
||||
auto colon = to.rfind (':');
|
||||
if (colon == std::string::npos)
|
||||
throw format (STRING_CMD_SYNC_BAD_SERVER, to);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user