Subversion Repositories tpanel

Rev

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

Rev 197 Rev 303
Line 17... Line 17...
17
 */
17
 */
18
 
18
 
19
#include <unistd.h>
19
#include <unistd.h>
20
#include "tsettings.h"
20
#include "tsettings.h"
21
#include "texpat++.h"
21
#include "texpat++.h"
22
#include "tconfig.h"
-
 
23
#include "ttpinit.h"
22
#include "terror.h"
24
 
23
 
25
#if __cplusplus < 201402L
24
#if __cplusplus < 201402L
26
#   error "This module requires at least C++14 standard!"
25
#   error "This module requires at least C++14 standard!"
27
#else
26
#else
28
#   if __cplusplus < 201703L
27
#   if __cplusplus < 201703L
Line 78... Line 77...
78
        return false;
77
        return false;
79
 
78
 
80
    int depth = 0;
79
    int depth = 0;
81
    size_t index = 0;
80
    size_t index = 0;
82
 
81
 
83
    if ((index = xml.getElementIndex("projectInfo", &depth)) == TExpat::npos)
82
    if (xml.getElementIndex("projectInfo", &depth) == TExpat::npos)
84
    {
83
    {
85
        MSG_ERROR("Couldn't find the project information! Broken surface?");
84
        MSG_ERROR("Couldn't find the project information! Broken surface?");
86
        TError::setError();
85
        TError::setError();
87
        return false;
86
        return false;
88
    }
87
    }