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 "ticons.h"
19
#include "ticons.h"
20
#include "terror.h"
20
#include "terror.h"
21
#include "texpat++.h"
21
#include "texpat++.h"
22
#include "tconfig.h"
22
#include "tconfig.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 76... Line 77...
76
        TError::setError();
77
        TError::setError();
77
        return;
78
        return;
78
    }
79
    }
79
 
80
 
80
    TExpat xml(path);
81
    TExpat xml(path);
-
 
82
 
-
 
83
    if (!TTPInit::isTP5())
81
    xml.setEncoding(ENC_CP1250);
84
        xml.setEncoding(ENC_CP1250);
-
 
85
    else
-
 
86
        xml.setEncoding(Expat::ENC_UTF8);
82
 
87
 
83
    if (!xml.parse())
88
    if (!xml.parse())
84
        return;
89
        return;
85
 
90
 
86
    int depth = 0;
91
    int depth = 0;