Subversion Repositories tpanel

Rev

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

Rev 446 Rev 486
Line 19... Line 19...
19
#include <string>
19
#include <string>
20
#include "tpageinterface.h"
20
#include "tpageinterface.h"
21
#include "tpagelist.h"
21
#include "tpagelist.h"
22
#include "tconfig.h"
22
#include "tconfig.h"
23
#include "terror.h"
23
#include "terror.h"
-
 
24
#include "ttpinit.h"
24
 
25
 
25
#if __cplusplus < 201402L
26
#if __cplusplus < 201402L
26
#   error "This module requires at least C++14 standard!"
27
#   error "This module requires at least C++14 standard!"
27
#else
28
#else
28
#   if __cplusplus < 201703L
29
#   if __cplusplus < 201703L
Line 105... Line 106...
105
        MSG_ERROR(TError::getErrorMsg());
106
        MSG_ERROR(TError::getErrorMsg());
106
        return;
107
        return;
107
    }
108
    }
108
 
109
 
109
    TExpat xml(sProject);
110
    TExpat xml(sProject);
-
 
111
 
-
 
112
    if (!TTPInit::isTP5())
110
    xml.setEncoding(ENC_CP1250);
113
        xml.setEncoding(ENC_CP1250);
-
 
114
    else
-
 
115
        xml.setEncoding(ENC_UTF8);
111
 
116
 
112
    if (!xml.parse())
117
    if (!xml.parse())
113
        return;
118
        return;
114
 
119
 
115
    int depth = 0;
120
    int depth = 0;