make environment paths protected

This commit is contained in:
pantor
2022-05-29 15:42:32 +02:00
parent 4566a20f9a
commit defee6fdf8
2 changed files with 8 additions and 6 deletions

View File

@@ -21,9 +21,6 @@ namespace inja {
* \brief Class for changing the configuration.
*/
class Environment {
std::string input_path;
std::string output_path;
LexerConfig lexer_config;
ParserConfig parser_config;
RenderConfig render_config;
@@ -31,6 +28,10 @@ class Environment {
FunctionStorage function_storage;
TemplateStorage template_storage;
protected:
std::string input_path;
std::string output_path;
public:
Environment(): Environment("") {}

View File

@@ -2723,9 +2723,6 @@ namespace inja {
* \brief Class for changing the configuration.
*/
class Environment {
std::string input_path;
std::string output_path;
LexerConfig lexer_config;
ParserConfig parser_config;
RenderConfig render_config;
@@ -2733,6 +2730,10 @@ class Environment {
FunctionStorage function_storage;
TemplateStorage template_storage;
protected:
std::string input_path;
std::string output_path;
public:
Environment(): Environment("") {}