* [cppcheck] Possible null pointer dereference: textfile - otherwise it is redundant to check it against null.
* [cppcheck] The TiXmlHandle::operator= does not conform to standard C/C++ behaviour.
To conform to standard C/C++ behaviour, return a reference to self (such as: 'TiXmlHandle &TiXmlHandle::operator=(..) { .. return *this; }'. For safety reasons it might be better to not fix this message. If you think that safety is always more important than conformance then please ignore/suppress this message. For more details about this topic, see the book "Effective C++" by Scott Meyers.
* [cppcheck] Defensive programming: The variable 'i' is used as an array index before it is checked that is within limits. This can mean that the array might be accessed out of bounds. Reorder conditions such as '(a[i] && i < 10)' to '(i < 10 && a[i])'. That way the array will not be accessed if the index is out of limits.
* [cppcheck] The scope of the variable 'temp' can be reduced.
Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced:
void f(int x)
{
    int i = 0;
    if (x) {
        // it's safe to move 'int i = 0;' here
        for (int n = 0; n < 10; ++n) {
            // it is possible but not safe to move 'int i = 0;' here
            do_something(&i);
        }
    }
}
When you see this message it is always safe to reduce the variable scope 1 level.
* [cppcheck] The scope of the variable 'xxx' can be reduced. (Part 2)