style fixes

This commit is contained in:
Günter Obiltschnig
2018-03-05 15:05:04 +01:00
parent 181fc0eea3
commit 7eb1325bba
16 changed files with 48 additions and 46 deletions

View File

@@ -47,7 +47,8 @@ MulticastSocketTest::~MulticastSocketTest()
void MulticastSocketTest::testMulticast()
{
try {
try
{
MulticastEchoServer echoServer;
MulticastSocket ms(SocketAddress::IPv4);
int n = ms.sendTo("hello", 5, echoServer.group());
@@ -58,10 +59,10 @@ void MulticastSocketTest::testMulticast()
assert (std::string(buffer, n) == "hello");
ms.close();
}
catch(Poco::NotImplementedException e)
catch (Poco::NotImplementedException e)
{
#if POCO_OS != POCO_OS_ANDROID
throw e;
throw;
#endif
}
}

View File

@@ -75,10 +75,10 @@ void NetworkInterfaceTest::testMap()
std::cout << "=============" << std::endl << std::endl;
}
}
catch(Poco::NotImplementedException e)
catch (Poco::NotImplementedException e)
{
#if POCO_OS != POCO_OS_ANDROID
throw e;
throw;
#endif
}
}
@@ -119,10 +119,10 @@ void NetworkInterfaceTest::testList()
std::cout << "==============" << std::endl << std::endl;
}
}
catch(Poco::NotImplementedException e)
catch (Poco::NotImplementedException e)
{
#if POCO_OS != POCO_OS_ANDROID
throw e;
throw;
#endif
}
}
@@ -139,10 +139,10 @@ void NetworkInterfaceTest::testForName()
assert (ifc.name() == it->second.name());
}
}
catch(Poco::NotImplementedException e)
catch (Poco::NotImplementedException e)
{
#if POCO_OS != POCO_OS_ANDROID
throw e;
throw;
#endif
}
}
@@ -184,10 +184,10 @@ void NetworkInterfaceTest::testForAddress()
}
}
}
catch(Poco::NotImplementedException e)
catch (Poco::NotImplementedException e)
{
#if POCO_OS != POCO_OS_ANDROID
throw e;
throw;
#endif
}
}
@@ -204,10 +204,10 @@ void NetworkInterfaceTest::testForIndex()
assert (ifc.index() == it->second.index());
}
}
catch(Poco::NotImplementedException e)
catch (Poco::NotImplementedException e)
{
#if POCO_OS != POCO_OS_ANDROID
throw e;
throw;
#endif
}
}
@@ -231,10 +231,10 @@ void NetworkInterfaceTest::testMapIpOnly()
std::cout << "MAC Address:" << mac << std::endl;
}
}
catch(Poco::NotImplementedException e)
catch (Poco::NotImplementedException e)
{
#if POCO_OS != POCO_OS_ANDROID
throw e;
throw;
#endif
}
}
@@ -251,10 +251,10 @@ void NetworkInterfaceTest::testMapUpOnly()
assert(it->second.isUp());
}
}
catch(Poco::NotImplementedException e)
catch (Poco::NotImplementedException e)
{
#if POCO_OS != POCO_OS_ANDROID
throw e;
throw;
#endif
}
}
@@ -298,10 +298,10 @@ void NetworkInterfaceTest::testListMapConformance()
assert (counter == l.size());
}
catch(Poco::NotImplementedException e)
catch (Poco::NotImplementedException e)
{
#if POCO_OS != POCO_OS_ANDROID
throw e;
throw;
#endif
}
}