fixes for style, documentation and consistency, part I. More coming...

This commit is contained in:
Guenter Obiltschnig
2015-08-27 10:18:32 +02:00
parent dbea46bbcb
commit 95818ff27f
12 changed files with 458 additions and 432 deletions

View File

@@ -9,23 +9,19 @@
//
// Definition of the XMLStreamParserException class.
//
// Copyright (c) 2004-2015, Applied Informatics Software Engineering GmbH.
// Copyright (c) 2015, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
// copyright : Copyright (c) 2013-2014 Code Synthesis Tools CC
// license : MIT; see accompanying LICENSE file
//
#include "Poco/XML/XMLStreamParserException.h"
#include "Poco/XML/XMLStreamParser.h"
using namespace std;
namespace Poco
{
namespace XML
{
namespace Poco {
namespace XML {
XMLStreamParserException::~XMLStreamParserException() throw ()
@@ -33,15 +29,21 @@ XMLStreamParserException::~XMLStreamParserException() throw ()
}
XMLStreamParserException::XMLStreamParserException(const string& n, Poco::UInt64 l, Poco::UInt64 c, const string& d)
: _name(n), _line(l), _column(c), _description(d)
XMLStreamParserException::XMLStreamParserException(const std::string& n, Poco::UInt64 l, Poco::UInt64 c, const std::string& d):
_name(n),
_line(l),
_column(c),
_description(d)
{
init();
}
XMLStreamParserException::XMLStreamParserException(const XMLStreamParser& p, const std::string& d)
: _name(p.inputName()), _line(p.line()), _column(p.column()), _description(d)
XMLStreamParserException::XMLStreamParserException(const XMLStreamParser& p, const std::string& d):
_name(p.inputName()),
_line(p.line()),
_column(p.column()),
_description(d)
{
init();
}
@@ -62,26 +64,29 @@ const char* XMLStreamParserException::name() const throw()
return _name.c_str();
}
Poco::UInt64 XMLStreamParserException::line() const
{
return _line;
}
Poco::UInt64 XMLStreamParserException::column() const
{
return _column;
}
const std::string& XMLStreamParserException::description() const
{
return _description;
}
char const* XMLStreamParserException::what() const throw ()
{
return _what.c_str();
}
} /* namespace XML */
} /* namespace Poco */
} } // namespace Poco::XML