Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/leethomason/tinyxml2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLee Thomason <leethomason@gmail.com>2017-06-27 02:55:01 +0300
committerLee Thomason <leethomason@gmail.com>2017-06-27 02:55:01 +0300
commit8c9e3133c4cccc2fc51bba3fbc734846b1de8080 (patch)
treebb8434cf914889afea98198556d6721b934eedcd
parent563ee8209365d5a9d0489f6df145f35ebbc2d97f (diff)
remove error string inline. hopefully helps with odd linking issues
-rwxr-xr-xtinyxml2.cpp10
-rwxr-xr-xtinyxml2.h10
2 files changed, 14 insertions, 6 deletions
diff --git a/tinyxml2.cpp b/tinyxml2.cpp
index d14089f..3043ab3 100755
--- a/tinyxml2.cpp
+++ b/tinyxml2.cpp
@@ -2308,6 +2308,16 @@ void XMLDocument::SetError( XMLError error, const char* str1, const char* str2,
return errorName;
}
+const char* XMLDocument::GetErrorStr1() const
+{
+ return _errorStr1.GetStr();
+}
+
+const char* XMLDocument::GetErrorStr2() const
+{
+ return _errorStr2.GetStr();
+}
+
const char* XMLDocument::ErrorName() const
{
return ErrorIDToName(_errorID);
diff --git a/tinyxml2.h b/tinyxml2.h
index 2b80a37..a9faacd 100755
--- a/tinyxml2.h
+++ b/tinyxml2.h
@@ -1803,13 +1803,11 @@ public:
static const char* ErrorIDToName(XMLError errorID);
/// Return a possibly helpful diagnostic location or string.
- const char* GetErrorStr1() const {
- return _errorStr1.GetStr();
- }
+ const char* GetErrorStr1() const;
+
/// Return a possibly helpful secondary diagnostic location or string.
- const char* GetErrorStr2() const {
- return _errorStr2.GetStr();
- }
+ const char* GetErrorStr2() const;
+
/// Return the line where the error occured, or zero if unknown.
int GetErrorLineNum() const
{