mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-22 08:02:06 +02:00
Formattingt fixes
This commit is contained in:
@@ -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
|
||||
|
||||
|
@@ -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 + "'");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user