https://gitlab.opengeosys.org/ogs/ogs.git
Revision 1296c574133a1ddf35df216c3f484ddef94eb076 authored by Lars Bilke on 18 March 2021, 13:25:37 UTC, committed by Lars Bilke on 18 March 2021, 13:25:37 UTC
[ci] Fix warnings check

Closes #3119

See merge request ogs/ogs!3521
2 parent s 4fa16ea + c6a64ea
Raw File
Tip revision: 1296c574133a1ddf35df216c3f484ddef94eb076 authored by Lars Bilke on 18 March 2021, 13:25:37 UTC
Merge branch 'fix-warnings-check' into 'master'
Tip revision: 1296c57
TestTools.cpp
/**
 * \copyright
 * Copyright (c) 2012-2021, OpenGeoSys Community (http://www.opengeosys.org)
 *            Distributed under a Modified BSD License.
 *              See accompanying file LICENSE.txt or
 *              http://www.opengeosys.org/project/license
 *
 */

#include <boost/property_tree/xml_parser.hpp>

#include "Tests/TestTools.h"

namespace Tests
{
boost::property_tree::ptree readXml(const char xml[])
{
    boost::property_tree::ptree ptree;
    std::istringstream xml_str(xml);
    boost::property_tree::read_xml(
        xml_str, ptree,
        boost::property_tree::xml_parser::no_comments |
        boost::property_tree::xml_parser::trim_whitespace);
    return ptree;
}

}  // namespace Tests
back to top