Subversion Repositories tpanel

Rev

Rev 446 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 446 Rev 486
Line 18... Line 18...
18
 
18
 
19
#include "texternal.h"
19
#include "texternal.h"
20
#include "terror.h"
20
#include "terror.h"
21
#include "tconfig.h"
21
#include "tconfig.h"
22
#include "texpat++.h"
22
#include "texpat++.h"
-
 
23
#include "ttpinit.h"
23
 
24
 
24
#if __cplusplus < 201402L
25
#if __cplusplus < 201402L
25
#   error "This module requires at least C++14 standard!"
26
#   error "This module requires at least C++14 standard!"
26
#else
27
#else
27
#   if __cplusplus < 201703L
28
#   if __cplusplus < 201703L
Line 88... Line 89...
88
void TExternal::initialize()
89
void TExternal::initialize()
89
{
90
{
90
    DECL_TRACER("TExternal::initialize()");
91
    DECL_TRACER("TExternal::initialize()");
91
 
92
 
92
    TExpat xml(mFileName);
93
    TExpat xml(mFileName);
-
 
94
 
-
 
95
    if (!TTPInit::isTP5())
93
    xml.setEncoding(ENC_CP1250);
96
        xml.setEncoding(ENC_CP1250);
-
 
97
    else
-
 
98
        xml.setEncoding(ENC_UTF8);
94
 
99
 
95
    if (!xml.parse())
100
    if (!xml.parse())
96
        return;
101
        return;
97
 
102
 
98
    int depth = 0;
103
    int depth = 0;