Formattingt fixes

This commit is contained in:
Marian Krivos
2015-08-22 22:09:19 +02:00
parent 81e495150c
commit ce003c5522
5 changed files with 143 additions and 34 deletions

View File

@@ -1,4 +1,18 @@
// file : cutl/xml/QName.cxx
//
// QName.cpp
//
// $Id$
//
// Library: XML
// Package: XML
// Module: QName
//
// Definition of the QName class.
//
// Copyright (c) 2004-2015, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
// copyright : Copyright (c) 2009-2013 Code Synthesis Tools CC
// license : MIT; see accompanying LICENSE file

View File

@@ -1,17 +1,35 @@
// file : cutl/xml/value-traits.cxx
//
// ValueTraits.cpp
//
// $Id$
//
// Library: XML
// Package: XML
// Module: ValueTraits
//
// Definition of the ValueTraits templates.
//
// Copyright (c) 2004-2015, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
// copyright : Copyright (c) 2009-2013 Code Synthesis Tools CC
// license : MIT; see accompanying LICENSE file
#include "Poco/XML/XMLStreamParser.h"
#include "Poco/XML/XMLStreamParserException.h"
using namespace std;
namespace Poco
{
namespace XML
{
bool default_value_traits<bool>::parse(string s, const XMLStreamParser& p)
{
if (s == "true" || s == "1" || s == "True" || s == "TRUE")
@@ -22,5 +40,6 @@ bool default_value_traits<bool>::parse(string s, const XMLStreamParser& p)
throw XMLStreamParserException(p, "invalid bool value '" + s + "'");
}
}
}