Revert "GH #1050 XML-tests: fix gcc -Wshadow warnings"

This commit is contained in:
Günter Obiltschnig 2016-09-05 08:21:54 +02:00 committed by GitHub
parent 64781d15f1
commit 5c0272cce3
18 changed files with 32 additions and 32 deletions

View File

@ -19,7 +19,7 @@
using Poco::XML::AttributesImpl;
AttributesImplTest::AttributesImplTest(const std::string& rName): CppUnit::TestCase(rName)
AttributesImplTest::AttributesImplTest(const std::string& name): CppUnit::TestCase(name)
{
}

View File

@ -26,7 +26,7 @@ using Poco::XML::Node;
using Poco::XML::AutoPtr;
ChildNodesTest::ChildNodesTest(const std::string& rName): CppUnit::TestCase(rName)
ChildNodesTest::ChildNodesTest(const std::string& name): CppUnit::TestCase(name)
{
}

View File

@ -31,7 +31,7 @@ using Poco::XML::XMLString;
using Poco::XML::DOMException;
DocumentTest::DocumentTest(const std::string& rName): CppUnit::TestCase(rName)
DocumentTest::DocumentTest(const std::string& name): CppUnit::TestCase(name)
{
}

View File

@ -31,7 +31,7 @@ using Poco::XML::NamedNodeMap;
using Poco::XML::AutoPtr;
DocumentTypeTest::DocumentTypeTest(const std::string& rName): CppUnit::TestCase(rName)
DocumentTypeTest::DocumentTypeTest(const std::string& name): CppUnit::TestCase(name)
{
}

View File

@ -33,7 +33,7 @@ using Poco::XML::AutoPtr;
using Poco::XML::XMLString;
ElementTest::ElementTest(const std::string& rName): CppUnit::TestCase(rName)
ElementTest::ElementTest(const std::string& name): CppUnit::TestCase(name)
{
}

View File

@ -133,7 +133,7 @@ private:
XMLString TestEventListener::_log;
EventTest::EventTest(const std::string& rName): CppUnit::TestCase(rName)
EventTest::EventTest(const std::string& name): CppUnit::TestCase(name)
{
}

View File

@ -23,7 +23,7 @@ using Poco::XML::Name;
using Poco::XML::AutoPtr;
NamePoolTest::NamePoolTest(const std::string& rName): CppUnit::TestCase(rName)
NamePoolTest::NamePoolTest(const std::string& name): CppUnit::TestCase(name)
{
}
@ -37,16 +37,16 @@ void NamePoolTest::testNamePool()
{
AutoPtr<NamePool> pool = new NamePool;
const Name* pName = 0;
Name xmlName("pre:local", "http://www.appinf.com");
Name name("pre:local", "http://www.appinf.com");
pName = &pool->insert(xmlName);
pName = &pool->insert(name);
const Name* pName2 = &pool->insert("pre:local", "http://www.appinf.com", "local");
assert (pName == pName2);
pName2 = &pool->insert("pre:local2", "http://www.appinf.com", "local2");
assert (pName2 != pName);
pName2 = &pool->insert(xmlName);
pName2 = &pool->insert(name);
assert (pName2 == pName);
pName2 = &pool->insert(*pName);

View File

@ -19,7 +19,7 @@
using Poco::XML::Name;
NameTest::NameTest(const std::string& rName): CppUnit::TestCase(rName)
NameTest::NameTest(const std::string& name): CppUnit::TestCase(name)
{
}
@ -81,18 +81,18 @@ void NameTest::testPrefix()
void NameTest::testName()
{
std::string qname = "name";
Name xmlName(qname);
assert (xmlName.qname() == "name");
assert (xmlName.prefix().empty());
assert (xmlName.namespaceURI().empty());
assert (xmlName.localName().empty());
Name name(qname);
assert (name.qname() == "name");
assert (name.prefix().empty());
assert (name.namespaceURI().empty());
assert (name.localName().empty());
qname.clear();
xmlName.assign(qname, "http://www.appinf.com/", "local");
assert (xmlName.qname().empty());
assert (xmlName.prefix().empty());
assert (xmlName.namespaceURI() == "http://www.appinf.com/");
assert (xmlName.localName() == "local");
name.assign(qname, "http://www.appinf.com/", "local");
assert (name.qname().empty());
assert (name.prefix().empty());
assert (name.namespaceURI() == "http://www.appinf.com/");
assert (name.localName() == "local");
Name name2("pre:local", "http://www.appinf.com/");
assert (name2.qname() == "pre:local");

View File

@ -19,7 +19,7 @@
using Poco::XML::NamespaceSupport;
NamespaceSupportTest::NamespaceSupportTest(const std::string& rName): CppUnit::TestCase(rName)
NamespaceSupportTest::NamespaceSupportTest(const std::string& name): CppUnit::TestCase(name)
{
}

View File

@ -28,7 +28,7 @@ using Poco::XML::AutoPtr;
using Poco::XML::XMLString;
NodeAppenderTest::NodeAppenderTest(const std::string& rName): CppUnit::TestCase(rName)
NodeAppenderTest::NodeAppenderTest(const std::string& name): CppUnit::TestCase(name)
{
}

View File

@ -46,7 +46,7 @@ namespace
}
NodeIteratorTest::NodeIteratorTest(const std::string& rName): CppUnit::TestCase(rName)
NodeIteratorTest::NodeIteratorTest(const std::string& name): CppUnit::TestCase(name)
{
}

View File

@ -26,7 +26,7 @@ using Poco::XML::Node;
using Poco::XML::AutoPtr;
NodeTest::NodeTest(const std::string& rName): CppUnit::TestCase(rName)
NodeTest::NodeTest(const std::string& name): CppUnit::TestCase(name)
{
}

View File

@ -32,7 +32,7 @@ using Poco::XML::AutoPtr;
using Poco::XML::InputSource;
ParserWriterTest::ParserWriterTest(const std::string& rName): CppUnit::TestCase(rName)
ParserWriterTest::ParserWriterTest(const std::string& name): CppUnit::TestCase(name)
{
}

View File

@ -64,7 +64,7 @@ public:
};
SAXParserTest::SAXParserTest(const std::string& rName): CppUnit::TestCase(rName)
SAXParserTest::SAXParserTest(const std::string& name): CppUnit::TestCase(name)
{
}

View File

@ -28,7 +28,7 @@ using Poco::XML::AutoPtr;
using Poco::XML::XMLString;
TextTest::TextTest(const std::string& rName): CppUnit::TestCase(rName)
TextTest::TextTest(const std::string& name): CppUnit::TestCase(name)
{
}

View File

@ -57,7 +57,7 @@ namespace
}
TreeWalkerTest::TreeWalkerTest(const std::string& rName): CppUnit::TestCase(rName)
TreeWalkerTest::TreeWalkerTest(const std::string& name): CppUnit::TestCase(name)
{
}

View File

@ -23,8 +23,8 @@
using namespace Poco::XML;
XMLStreamParserTest::XMLStreamParserTest(const std::string& rName):
CppUnit::TestCase(rName)
XMLStreamParserTest::XMLStreamParserTest(const std::string& name):
CppUnit::TestCase(name)
{
}

View File

@ -23,7 +23,7 @@ using Poco::XML::XMLWriter;
using Poco::XML::AttributesImpl;
XMLWriterTest::XMLWriterTest(const std::string& rName): CppUnit::TestCase(rName)
XMLWriterTest::XMLWriterTest(const std::string& name): CppUnit::TestCase(name)
{
}